@wandelbots/wandelbots-js-react-components 2.54.2 → 2.54.3-pr.fix-dom-leak.403.8043b0b

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
@@ -381,7 +381,7 @@ function L0({
381
381
  a
382
382
  )) });
383
383
  }
384
- function qk({
384
+ function Wk({
385
385
  scene: e,
386
386
  meshChildrenProvider: t
387
387
  }) {
@@ -479,7 +479,7 @@ function B0(e) {
479
479
  }
480
480
  return { isCoplanar: !0, normal: s };
481
481
  }
482
- function Wk({
482
+ function Jk({
483
483
  safetyZones: e,
484
484
  ...t
485
485
  }) {
@@ -520,7 +520,7 @@ function Wk({
520
520
  });
521
521
  }) });
522
522
  }
523
- function Jk({
523
+ function Yk({
524
524
  trajectory: e,
525
525
  ...t
526
526
  }) {
@@ -742,7 +742,7 @@ const G0 = ({
742
742
  fill: "currentColor",
743
743
  fillOpacity: "0.56"
744
744
  }
745
- ) }), Yk = Ge(
745
+ ) }), Kk = Ge(
746
746
  Ce((e) => {
747
747
  const {
748
748
  appIcon: t,
@@ -12324,7 +12324,7 @@ const lP = ({
12324
12324
  isPaused: C
12325
12325
  }
12326
12326
  };
12327
- }, Kk = Ge(
12327
+ }, Qk = Ge(
12328
12328
  Ce(
12329
12329
  ({
12330
12330
  onCycleComplete: e,
@@ -12799,7 +12799,7 @@ const lP = ({
12799
12799
  isPaused: y
12800
12800
  }
12801
12801
  };
12802
- }, Qk = Ge(
12802
+ }, Xk = Ge(
12803
12803
  Ce(
12804
12804
  ({
12805
12805
  onTimerReady: e,
@@ -17027,22 +17027,22 @@ I.getAdapter = Df.getAdapter;
17027
17027
  I.HttpStatusCode = Tl;
17028
17028
  I.default = I;
17029
17029
  const {
17030
- Axios: e$,
17030
+ Axios: t$,
17031
17031
  AxiosError: Rl,
17032
- CanceledError: t$,
17033
- isCancel: r$,
17034
- CancelToken: n$,
17035
- VERSION: a$,
17036
- all: o$,
17037
- Cancel: s$,
17032
+ CanceledError: r$,
17033
+ isCancel: n$,
17034
+ CancelToken: a$,
17035
+ VERSION: o$,
17036
+ all: s$,
17037
+ Cancel: i$,
17038
17038
  isAxiosError: pE,
17039
- spread: i$,
17040
- toFormData: l$,
17041
- AxiosHeaders: c$,
17042
- HttpStatusCode: u$,
17043
- formToJSON: d$,
17044
- getAdapter: h$,
17045
- mergeConfig: p$
17039
+ spread: l$,
17040
+ toFormData: c$,
17041
+ AxiosHeaders: u$,
17042
+ HttpStatusCode: d$,
17043
+ formToJSON: h$,
17044
+ getAdapter: p$,
17045
+ mergeConfig: m$
17046
17046
  } = I, M = "/api/v1".replace(/\/+$/, "");
17047
17047
  class je {
17048
17048
  constructor(t, r = M, n = I) {
@@ -31883,7 +31883,7 @@ const gg = Ce(
31883
31883
  t
31884
31884
  ] });
31885
31885
  }
31886
- ), m$ = Ge(
31886
+ ), f$ = Ge(
31887
31887
  Ce((e) => {
31888
31888
  const t = O0(e.nova) ? new SV({ instanceUrl: e.nova }) : e.nova, r = hs(() => ({
31889
31889
  joggingStore: null,
@@ -32037,7 +32037,7 @@ const gg = Ce(
32037
32037
  )
32038
32038
  }
32039
32039
  ) });
32040
- }, f$ = Ge(
32040
+ }, g$ = Ge(
32041
32041
  Ce(({ tcpPose: e, showCopyButton: t = !1 }) => {
32042
32042
  const [r, n] = De(null), a = T0(e), o = async () => {
32043
32043
  try {
@@ -32071,7 +32071,7 @@ const gg = Ce(
32071
32071
  }
32072
32072
  );
32073
32073
  })
32074
- ), g$ = Ge(
32074
+ ), y$ = Ge(
32075
32075
  Ce(({ joints: e, showCopyButton: t = !1 }) => {
32076
32076
  const [r, n] = De(null), a = `[${e.joints.map((s) => parseFloat(s.toFixed(4))).join(", ")}]`, o = async () => {
32077
32077
  try {
@@ -32138,7 +32138,7 @@ const ai = (e, t, r) => ({
32138
32138
  timestamp: /* @__PURE__ */ new Date(),
32139
32139
  message: e,
32140
32140
  level: t
32141
- }), y$ = (e, t) => ai(e, "debug", t), b$ = (e, t) => ai(e, "info", t), x$ = (e, t) => ai(e, "warning", t), v$ = (e, t) => ai(e, "error", t), Ij = Ge(
32141
+ }), b$ = (e, t) => ai(e, "debug", t), x$ = (e, t) => ai(e, "info", t), v$ = (e, t) => ai(e, "warning", t), S$ = (e, t) => ai(e, "error", t), Ij = Ge(
32142
32142
  Ce((e) => {
32143
32143
  var u;
32144
32144
  const { messages: t = [], onClear: r, height: n = 400, sx: a } = e, o = Be(), s = Se(null);
@@ -32407,7 +32407,7 @@ const ai = (e, t, r) => ({
32407
32407
  }
32408
32408
  );
32409
32409
  })
32410
- ), S$ = Ge(
32410
+ ), w$ = Ge(
32411
32411
  Ce((e) => {
32412
32412
  const { store: t, onStoreReady: r, ...n } = e, a = Se(r);
32413
32413
  _e(() => {
@@ -32437,7 +32437,7 @@ function Ej() {
32437
32437
  e.indexOf("/", e.indexOf("//") + 2)
32438
32438
  );
32439
32439
  }
32440
- function w$({
32440
+ function O$({
32441
32441
  baseUrl: e = Ej(),
32442
32442
  ...t
32443
32443
  }) {
@@ -32510,7 +32510,7 @@ function w$({
32510
32510
  );
32511
32511
  }
32512
32512
  var St = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.PREPARING = "preparing", e.STARTING = "starting", e.RUNNING = "running", e.PAUSING = "pausing", e.PAUSED = "paused", e.STOPPING = "stopping", e.COMPLETED = "completed", e.FAILED = "failed", e.STOPPED = "stopped", e.ERROR = "error", e))(St || {});
32513
- const O$ = Ge(
32513
+ const C$ = Ge(
32514
32514
  Ce(
32515
32515
  ({
32516
32516
  state: e,
@@ -33097,7 +33097,7 @@ function Gj({
33097
33097
  }
33098
33098
  ) : null;
33099
33099
  }
33100
- const C$ = Ge(
33100
+ const P$ = Ge(
33101
33101
  Ce(
33102
33102
  ({
33103
33103
  robotName: e,
@@ -33550,7 +33550,7 @@ const Jj = Ge(
33550
33550
  }
33551
33551
  );
33552
33552
  })
33553
- ), P$ = Ge(
33553
+ ), T$ = Ge(
33554
33554
  Ce(
33555
33555
  ({
33556
33556
  robotName: e,
@@ -33656,7 +33656,7 @@ const Jj = Ge(
33656
33656
  );
33657
33657
  }
33658
33658
  )
33659
- ), T$ = Array(6).fill(2 * Math.PI), ep = {
33659
+ ), R$ = Array(6).fill(2 * Math.PI), ep = {
33660
33660
  [Ft.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
33661
33661
  [Ft.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
33662
33662
  [Ft.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
@@ -33696,7 +33696,7 @@ function Yj(e) {
33696
33696
  return null;
33697
33697
  }
33698
33698
  }
33699
- function R$(e, t) {
33699
+ function A$(e, t) {
33700
33700
  const r = Yj(e);
33701
33701
  return r && r in ep ? ep[r] : t || null;
33702
33702
  }
@@ -34070,7 +34070,7 @@ const Kj = ({
34070
34070
  OV(e, `Unknown safety state ${e}`);
34071
34071
  }
34072
34072
  }
34073
- ), A$ = Ge(
34073
+ ), _$ = Ge(
34074
34074
  Ce(
34075
34075
  ({
34076
34076
  isVirtual: e,
@@ -34155,7 +34155,7 @@ const Kj = ({
34155
34155
  }
34156
34156
  ]
34157
34157
  };
34158
- }), _$ = (e) => {
34158
+ }), I$ = (e) => {
34159
34159
  const { ref: t, ...r } = e;
34160
34160
  return /* @__PURE__ */ g.jsx(
34161
34161
  xk,
@@ -34182,7 +34182,22 @@ function vk(e) {
34182
34182
  }
34183
34183
  );
34184
34184
  }
34185
- const I$ = Ge(
34185
+ function Sk({ children: e, ...t }) {
34186
+ const {
34187
+ fullWidth: r,
34188
+ indicator: n,
34189
+ onChange: a,
34190
+ orientation: o,
34191
+ scrollButtons: s,
34192
+ selectionFollowsFocus: i,
34193
+ textColor: l,
34194
+ value: c,
34195
+ variant: u,
34196
+ ...d
34197
+ } = t;
34198
+ return /* @__PURE__ */ g.jsx(re, { ...d, children: e });
34199
+ }
34200
+ const E$ = Ge(
34186
34201
  Ce((e) => {
34187
34202
  const {
34188
34203
  items: t,
@@ -34299,30 +34314,38 @@ const I$ = Ge(
34299
34314
  transform: "none"
34300
34315
  }
34301
34316
  }
34302
- }
34317
+ },
34318
+ h.id
34303
34319
  );
34304
34320
  return S ? /* @__PURE__ */ g.jsx(
34305
- t0,
34321
+ Sk,
34306
34322
  {
34307
- badgeContent: y,
34308
- color: ((C = h.badge) == null ? void 0 : C.color) || "error",
34309
- max: (P = h.badge) == null ? void 0 : P.max,
34310
- showZero: (O = h.badge) == null ? void 0 : O.showZero,
34311
- anchorOrigin: {
34312
- vertical: "top",
34313
- horizontal: "right"
34314
- },
34315
- overlap: "rectangular",
34316
- sx: {
34317
- "& .MuiBadge-badge": {
34318
- // Ensure badge doesn't inherit tab opacity
34319
- opacity: "1 !important"
34323
+ component: "span",
34324
+ sx: { display: "inline-flex" },
34325
+ children: /* @__PURE__ */ g.jsx(
34326
+ t0,
34327
+ {
34328
+ badgeContent: y,
34329
+ color: ((C = h.badge) == null ? void 0 : C.color) || "error",
34330
+ max: (P = h.badge) == null ? void 0 : P.max,
34331
+ showZero: (O = h.badge) == null ? void 0 : O.showZero,
34332
+ anchorOrigin: {
34333
+ vertical: "top",
34334
+ horizontal: "right"
34335
+ },
34336
+ overlap: "rectangular",
34337
+ sx: {
34338
+ "& .MuiBadge-badge": {
34339
+ // Ensure badge doesn't inherit tab opacity
34340
+ opacity: "1 !important"
34341
+ }
34342
+ },
34343
+ children: w
34320
34344
  }
34321
- },
34322
- children: w
34345
+ )
34323
34346
  },
34324
34347
  h.id
34325
- ) : /* @__PURE__ */ g.jsx(re, { sx: { display: "inline-flex" }, children: w }, h.id);
34348
+ ) : w;
34326
34349
  })
34327
34350
  }
34328
34351
  )
@@ -34343,7 +34366,7 @@ const I$ = Ge(
34343
34366
  }
34344
34367
  );
34345
34368
  })
34346
- ), Sk = {
34369
+ ), wk = {
34347
34370
  $schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
34348
34371
  name: "wandelscript",
34349
34372
  patterns: [
@@ -34402,9 +34425,9 @@ const I$ = Ge(
34402
34425
  }
34403
34426
  },
34404
34427
  scopeName: "source.wandelscript"
34405
- }, wk = _g(() => import("@monaco-editor/react"));
34428
+ }, Ok = _g(() => import("@monaco-editor/react"));
34406
34429
  let Qi = null;
34407
- async function Ok() {
34430
+ async function Ck() {
34408
34431
  if (!Qi) {
34409
34432
  const [{ createHighlighter: e }, { shikiToMonaco: t }] = await Promise.all([
34410
34433
  import("shiki"),
@@ -34414,7 +34437,7 @@ async function Ok() {
34414
34437
  shiki: await e({
34415
34438
  // Our textmate grammar doesn't quite conform to the expected type
34416
34439
  // here; I'm not sure what the missing properties mean exactly
34417
- langs: [Sk],
34440
+ langs: [wk],
34418
34441
  themes: ["dark-plus", "light-plus"]
34419
34442
  }),
34420
34443
  shikiToMonaco: t
@@ -34422,7 +34445,7 @@ async function Ok() {
34422
34445
  }
34423
34446
  return Qi;
34424
34447
  }
34425
- const E$ = Ge(
34448
+ const V$ = Ge(
34426
34449
  (e) => {
34427
34450
  const t = Be(), [r, n] = De("dark-plus"), a = t.palette.mode === "dark" ? "dark-plus" : "light-plus";
34428
34451
  async function o(s) {
@@ -34444,7 +34467,7 @@ const E$ = Ge(
34444
34467
  { open: "(", close: ")" }
34445
34468
  ]
34446
34469
  });
34447
- const { shiki: i, shikiToMonaco: l } = await Ok();
34470
+ const { shiki: i, shikiToMonaco: l } = await Ck();
34448
34471
  l(i, s), s.editor.defineTheme(
34449
34472
  a,
34450
34473
  ((u = (c = t.componentsExt) == null ? void 0 : c.WandelscriptEditor) == null ? void 0 : u.monacoTheme) ?? {
@@ -34456,7 +34479,7 @@ const E$ = Ge(
34456
34479
  ), e.monacoSetup && e.monacoSetup(s), n(a);
34457
34480
  }
34458
34481
  return /* @__PURE__ */ g.jsx(tp, { fallback: /* @__PURE__ */ g.jsx(Wf, {}), children: /* @__PURE__ */ g.jsx(
34459
- wk,
34482
+ Ok,
34460
34483
  {
34461
34484
  value: e.code,
34462
34485
  onMount: (s, i) => {
@@ -34835,65 +34858,65 @@ function Og() {
34835
34858
  }
34836
34859
  };
34837
34860
  }
34838
- function Ck() {
34861
+ function Pk() {
34839
34862
  const e = Og();
34840
34863
  return e.palette.mode = "light", e;
34841
34864
  }
34842
- function V$(e) {
34865
+ function M$(e) {
34843
34866
  var n, a, o, s;
34844
34867
  let t = !0;
34845
34868
  ((n = e.palette) == null ? void 0 : n.mode) === "light" ? t = !1 : ((a = e.palette) == null ? void 0 : a.mode) !== "dark" && (t = !(typeof window < "u" && ((s = (o = window.matchMedia) == null ? void 0 : o.call(window, "(prefers-color-scheme: light)")) == null ? void 0 : s.matches)));
34846
- const r = t ? Og() : Ck();
34869
+ const r = t ? Og() : Pk();
34847
34870
  return Ip(r, e);
34848
34871
  }
34849
34872
  export {
34850
- Yk as AppHeader,
34851
- qk as CollisionSceneRenderer,
34852
- Kk as CycleTimer,
34873
+ Kk as AppHeader,
34874
+ Wk as CollisionSceneRenderer,
34875
+ Qk as CycleTimer,
34853
34876
  Md as JoggingCartesianAxisControl,
34854
34877
  ZP as JoggingJointRotationControl,
34855
- m$ as JoggingPanel,
34878
+ f$ as JoggingPanel,
34856
34879
  Dc as JoggingStore,
34857
34880
  Wf as LoadingCover,
34858
34881
  PV as LoadingErrorMessage,
34859
- S$ as LogPanel,
34882
+ w$ as LogPanel,
34860
34883
  _j as LogStore,
34861
34884
  Ij as LogViewer,
34862
34885
  ep as MANUFACTURER_HOME_CONFIGS,
34863
- w$ as NoMotionGroupModal,
34864
- f$ as PoseCartesianValues,
34865
- g$ as PoseJointValues,
34886
+ O$ as NoMotionGroupModal,
34887
+ g$ as PoseCartesianValues,
34888
+ y$ as PoseJointValues,
34866
34889
  Kc as PresetEnvironment,
34867
- O$ as ProgramControl,
34890
+ C$ as ProgramControl,
34868
34891
  St as ProgramState,
34869
34892
  Xh as ProgramStateIndicator,
34870
34893
  Gj as Robot,
34871
- C$ as RobotCard,
34872
- P$ as RobotListItem,
34894
+ P$ as RobotCard,
34895
+ T$ as RobotListItem,
34873
34896
  Jj as RobotSetupReadinessIndicator,
34874
34897
  wg as RobotSetupReadinessState,
34875
- A$ as SafetyBar,
34876
- Wk as SafetyZonesRenderer,
34877
- _$ as SelectableFab,
34898
+ _$ as SafetyBar,
34899
+ Jk as SafetyZonesRenderer,
34900
+ I$ as SelectableFab,
34878
34901
  zj as SupportedRobot,
34879
- I$ as TabBar,
34880
- Qk as Timer,
34881
- Jk as TrajectoryRenderer,
34902
+ E$ as TabBar,
34903
+ Xk as Timer,
34904
+ Yk as TrajectoryRenderer,
34882
34905
  Xm as ValueInterpolator,
34883
34906
  Pj as VelocitySlider,
34884
34907
  fg as VelocitySliderLabel,
34885
34908
  vP as WandelbotsDataGrid,
34886
- E$ as WandelscriptEditor,
34887
- y$ as createDebugMessage,
34888
- v$ as createErrorMessage,
34889
- b$ as createInfoMessage,
34909
+ V$ as WandelscriptEditor,
34910
+ b$ as createDebugMessage,
34911
+ S$ as createErrorMessage,
34912
+ x$ as createInfoMessage,
34890
34913
  ai as createLogMessage,
34891
- V$ as createNovaMuiTheme,
34892
- x$ as createWarningMessage,
34893
- T$ as defaultAxisConfig,
34914
+ M$ as createNovaMuiTheme,
34915
+ v$ as createWarningMessage,
34916
+ R$ as defaultAxisConfig,
34894
34917
  bg as defaultGetModel,
34895
34918
  Yj as extractManufacturer,
34896
- R$ as getDefaultHomeConfig,
34919
+ A$ as getDefaultHomeConfig,
34897
34920
  cp as i18n,
34898
34921
  Ic as useAnimationFrame,
34899
34922
  PP as useAutorun,