@wandelbots/wandelbots-js-react-components 2.54.3-pr.fix-dom-leak.403.4c7bc8d → 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/components/TabBar.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +85 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TabBar.tsx +30 -2
package/dist/index.js
CHANGED
|
@@ -381,7 +381,7 @@ function L0({
|
|
|
381
381
|
a
|
|
382
382
|
)) });
|
|
383
383
|
}
|
|
384
|
-
function
|
|
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
|
|
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
|
|
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
|
-
) }),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
17030
|
+
Axios: t$,
|
|
17031
17031
|
AxiosError: Rl,
|
|
17032
|
-
CanceledError:
|
|
17033
|
-
isCancel:
|
|
17034
|
-
CancelToken:
|
|
17035
|
-
VERSION:
|
|
17036
|
-
all:
|
|
17037
|
-
Cancel:
|
|
17032
|
+
CanceledError: r$,
|
|
17033
|
+
isCancel: n$,
|
|
17034
|
+
CancelToken: a$,
|
|
17035
|
+
VERSION: o$,
|
|
17036
|
+
all: s$,
|
|
17037
|
+
Cancel: i$,
|
|
17038
17038
|
isAxiosError: pE,
|
|
17039
|
-
spread:
|
|
17040
|
-
toFormData:
|
|
17041
|
-
AxiosHeaders:
|
|
17042
|
-
HttpStatusCode:
|
|
17043
|
-
formToJSON:
|
|
17044
|
-
getAdapter:
|
|
17045
|
-
mergeConfig:
|
|
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
|
-
),
|
|
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
|
-
},
|
|
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
|
-
),
|
|
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
|
-
}),
|
|
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
|
-
),
|
|
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
|
|
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
|
|
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
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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
|
|
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
|
-
),
|
|
34073
|
+
), _$ = Ge(
|
|
34074
34074
|
Ce(
|
|
34075
34075
|
({
|
|
34076
34076
|
isVirtual: e,
|
|
@@ -34155,7 +34155,7 @@ const Kj = ({
|
|
|
34155
34155
|
}
|
|
34156
34156
|
]
|
|
34157
34157
|
};
|
|
34158
|
-
}),
|
|
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
|
-
|
|
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,
|
|
@@ -34303,7 +34318,7 @@ const I$ = Ge(
|
|
|
34303
34318
|
h.id
|
|
34304
34319
|
);
|
|
34305
34320
|
return S ? /* @__PURE__ */ g.jsx(
|
|
34306
|
-
|
|
34321
|
+
Sk,
|
|
34307
34322
|
{
|
|
34308
34323
|
component: "span",
|
|
34309
34324
|
sx: { display: "inline-flex" },
|
|
@@ -34351,7 +34366,7 @@ const I$ = Ge(
|
|
|
34351
34366
|
}
|
|
34352
34367
|
);
|
|
34353
34368
|
})
|
|
34354
|
-
),
|
|
34369
|
+
), wk = {
|
|
34355
34370
|
$schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
34356
34371
|
name: "wandelscript",
|
|
34357
34372
|
patterns: [
|
|
@@ -34410,9 +34425,9 @@ const I$ = Ge(
|
|
|
34410
34425
|
}
|
|
34411
34426
|
},
|
|
34412
34427
|
scopeName: "source.wandelscript"
|
|
34413
|
-
},
|
|
34428
|
+
}, Ok = _g(() => import("@monaco-editor/react"));
|
|
34414
34429
|
let Qi = null;
|
|
34415
|
-
async function
|
|
34430
|
+
async function Ck() {
|
|
34416
34431
|
if (!Qi) {
|
|
34417
34432
|
const [{ createHighlighter: e }, { shikiToMonaco: t }] = await Promise.all([
|
|
34418
34433
|
import("shiki"),
|
|
@@ -34422,7 +34437,7 @@ async function Ok() {
|
|
|
34422
34437
|
shiki: await e({
|
|
34423
34438
|
// Our textmate grammar doesn't quite conform to the expected type
|
|
34424
34439
|
// here; I'm not sure what the missing properties mean exactly
|
|
34425
|
-
langs: [
|
|
34440
|
+
langs: [wk],
|
|
34426
34441
|
themes: ["dark-plus", "light-plus"]
|
|
34427
34442
|
}),
|
|
34428
34443
|
shikiToMonaco: t
|
|
@@ -34430,7 +34445,7 @@ async function Ok() {
|
|
|
34430
34445
|
}
|
|
34431
34446
|
return Qi;
|
|
34432
34447
|
}
|
|
34433
|
-
const
|
|
34448
|
+
const V$ = Ge(
|
|
34434
34449
|
(e) => {
|
|
34435
34450
|
const t = Be(), [r, n] = De("dark-plus"), a = t.palette.mode === "dark" ? "dark-plus" : "light-plus";
|
|
34436
34451
|
async function o(s) {
|
|
@@ -34452,7 +34467,7 @@ const E$ = Ge(
|
|
|
34452
34467
|
{ open: "(", close: ")" }
|
|
34453
34468
|
]
|
|
34454
34469
|
});
|
|
34455
|
-
const { shiki: i, shikiToMonaco: l } = await
|
|
34470
|
+
const { shiki: i, shikiToMonaco: l } = await Ck();
|
|
34456
34471
|
l(i, s), s.editor.defineTheme(
|
|
34457
34472
|
a,
|
|
34458
34473
|
((u = (c = t.componentsExt) == null ? void 0 : c.WandelscriptEditor) == null ? void 0 : u.monacoTheme) ?? {
|
|
@@ -34464,7 +34479,7 @@ const E$ = Ge(
|
|
|
34464
34479
|
), e.monacoSetup && e.monacoSetup(s), n(a);
|
|
34465
34480
|
}
|
|
34466
34481
|
return /* @__PURE__ */ g.jsx(tp, { fallback: /* @__PURE__ */ g.jsx(Wf, {}), children: /* @__PURE__ */ g.jsx(
|
|
34467
|
-
|
|
34482
|
+
Ok,
|
|
34468
34483
|
{
|
|
34469
34484
|
value: e.code,
|
|
34470
34485
|
onMount: (s, i) => {
|
|
@@ -34843,65 +34858,65 @@ function Og() {
|
|
|
34843
34858
|
}
|
|
34844
34859
|
};
|
|
34845
34860
|
}
|
|
34846
|
-
function
|
|
34861
|
+
function Pk() {
|
|
34847
34862
|
const e = Og();
|
|
34848
34863
|
return e.palette.mode = "light", e;
|
|
34849
34864
|
}
|
|
34850
|
-
function
|
|
34865
|
+
function M$(e) {
|
|
34851
34866
|
var n, a, o, s;
|
|
34852
34867
|
let t = !0;
|
|
34853
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)));
|
|
34854
|
-
const r = t ? Og() :
|
|
34869
|
+
const r = t ? Og() : Pk();
|
|
34855
34870
|
return Ip(r, e);
|
|
34856
34871
|
}
|
|
34857
34872
|
export {
|
|
34858
|
-
|
|
34859
|
-
|
|
34860
|
-
|
|
34873
|
+
Kk as AppHeader,
|
|
34874
|
+
Wk as CollisionSceneRenderer,
|
|
34875
|
+
Qk as CycleTimer,
|
|
34861
34876
|
Md as JoggingCartesianAxisControl,
|
|
34862
34877
|
ZP as JoggingJointRotationControl,
|
|
34863
|
-
|
|
34878
|
+
f$ as JoggingPanel,
|
|
34864
34879
|
Dc as JoggingStore,
|
|
34865
34880
|
Wf as LoadingCover,
|
|
34866
34881
|
PV as LoadingErrorMessage,
|
|
34867
|
-
|
|
34882
|
+
w$ as LogPanel,
|
|
34868
34883
|
_j as LogStore,
|
|
34869
34884
|
Ij as LogViewer,
|
|
34870
34885
|
ep as MANUFACTURER_HOME_CONFIGS,
|
|
34871
|
-
|
|
34872
|
-
|
|
34873
|
-
|
|
34886
|
+
O$ as NoMotionGroupModal,
|
|
34887
|
+
g$ as PoseCartesianValues,
|
|
34888
|
+
y$ as PoseJointValues,
|
|
34874
34889
|
Kc as PresetEnvironment,
|
|
34875
|
-
|
|
34890
|
+
C$ as ProgramControl,
|
|
34876
34891
|
St as ProgramState,
|
|
34877
34892
|
Xh as ProgramStateIndicator,
|
|
34878
34893
|
Gj as Robot,
|
|
34879
|
-
|
|
34880
|
-
|
|
34894
|
+
P$ as RobotCard,
|
|
34895
|
+
T$ as RobotListItem,
|
|
34881
34896
|
Jj as RobotSetupReadinessIndicator,
|
|
34882
34897
|
wg as RobotSetupReadinessState,
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
34898
|
+
_$ as SafetyBar,
|
|
34899
|
+
Jk as SafetyZonesRenderer,
|
|
34900
|
+
I$ as SelectableFab,
|
|
34886
34901
|
zj as SupportedRobot,
|
|
34887
|
-
|
|
34888
|
-
|
|
34889
|
-
|
|
34902
|
+
E$ as TabBar,
|
|
34903
|
+
Xk as Timer,
|
|
34904
|
+
Yk as TrajectoryRenderer,
|
|
34890
34905
|
Xm as ValueInterpolator,
|
|
34891
34906
|
Pj as VelocitySlider,
|
|
34892
34907
|
fg as VelocitySliderLabel,
|
|
34893
34908
|
vP as WandelbotsDataGrid,
|
|
34894
|
-
|
|
34895
|
-
|
|
34896
|
-
|
|
34897
|
-
|
|
34909
|
+
V$ as WandelscriptEditor,
|
|
34910
|
+
b$ as createDebugMessage,
|
|
34911
|
+
S$ as createErrorMessage,
|
|
34912
|
+
x$ as createInfoMessage,
|
|
34898
34913
|
ai as createLogMessage,
|
|
34899
|
-
|
|
34900
|
-
|
|
34901
|
-
|
|
34914
|
+
M$ as createNovaMuiTheme,
|
|
34915
|
+
v$ as createWarningMessage,
|
|
34916
|
+
R$ as defaultAxisConfig,
|
|
34902
34917
|
bg as defaultGetModel,
|
|
34903
34918
|
Yj as extractManufacturer,
|
|
34904
|
-
|
|
34919
|
+
A$ as getDefaultHomeConfig,
|
|
34905
34920
|
cp as i18n,
|
|
34906
34921
|
Ic as useAnimationFrame,
|
|
34907
34922
|
PP as useAutorun,
|