@ioai/lerobot-studio 1.0.1 → 1.0.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, G as o, H as s, I as c, J as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, V as y, W as b, X as x, Y as S, Z as C, _ as w, at as T, b as E, c as D, ct as O, d as k, dt as A, et as j, f as M, g as N, h as ee, ht as te, it as ne, j as re, k as ie, l as P, mt as F, nt as I, ot as L, pt as R, q as ae, rt as oe, s as se, st as ce, t as le, tt as ue, u as de, ut as fe, w as pe, x as me, y as he, z as ge } from "./react-window-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, G as o, H as s, I as c, J as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, V as y, W as b, X as x, Y as S, Z as C, _ as w, at as T, b as E, c as D, ct as O, d as k, dt as A, et as j, f as M, g as N, h as ee, ht as te, it as ne, j as re, k as ie, l as P, mt as F, nt as I, ot as L, pt as R, q as ae, rt as oe, s as se, st as ce, t as le, tt as ue, u as de, ut as fe, w as pe, x as me, y as he, z as ge } from "./react-window-B1KnRC6j.js";
|
|
2
2
|
import { n as _e } from "./MediaCache-DZ7bEoOY.js";
|
|
3
3
|
import * as z from "react";
|
|
4
4
|
import B, { Component as ve, createContext as V, memo as H, startTransition as ye, useCallback as U, useDeferredValue as be, useEffect as xe, useMemo as W, useRef as G, useState as Se, useSyncExternalStore as Ce } from "react";
|
|
@@ -1385,7 +1385,7 @@ function Cr({ className: e, ...t }) {
|
|
|
1385
1385
|
function wr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
1386
1386
|
return /* @__PURE__ */ q(Sr, { children: [/* @__PURE__ */ K(Cr, {}), /* @__PURE__ */ q(s, {
|
|
1387
1387
|
"data-slot": "sheet-content",
|
|
1388
|
-
className: F("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500", n === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm", n === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm", n === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top", n === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom", e),
|
|
1388
|
+
className: F("fixed z-50 flex flex-col gap-4 bg-background text-foreground shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500", n === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm", n === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm", n === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top", n === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom", e),
|
|
1389
1389
|
...i,
|
|
1390
1390
|
children: [t, r && /* @__PURE__ */ q(y, {
|
|
1391
1391
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
@@ -14813,7 +14813,7 @@ eh.assign = gf, eh.fmtNum = Cd, eh.rangeNum = vd, eh.rangeLog = fd, eh.rangeAsin
|
|
|
14813
14813
|
}
|
|
14814
14814
|
//#endregion
|
|
14815
14815
|
//#region src/react/lib/chartTheme.ts
|
|
14816
|
-
var th = typeof document < "u" ? () => document.querySelector("
|
|
14816
|
+
var th = typeof document < "u" ? () => document.querySelector(".lerobot-root") ?? document.getElementById("lerobot-root") : () => null;
|
|
14817
14817
|
function nh(e, t, n = "#888") {
|
|
14818
14818
|
let r = e ?? (typeof document < "u" ? document.documentElement : null);
|
|
14819
14819
|
if (!r) return n;
|
|
@@ -16051,7 +16051,7 @@ var Ph = ({ params: e }) => {
|
|
|
16051
16051
|
]);
|
|
16052
16052
|
return /* @__PURE__ */ q("div", {
|
|
16053
16053
|
ref: f,
|
|
16054
|
-
className: "w-full h-full flex flex-col bg-background overflow-hidden",
|
|
16054
|
+
className: "w-full h-full flex flex-col bg-background text-foreground overflow-hidden",
|
|
16055
16055
|
children: [
|
|
16056
16056
|
/* @__PURE__ */ q("div", {
|
|
16057
16057
|
className: "flex items-center justify-between px-3 py-1.5 border-b bg-muted/20",
|
|
@@ -16159,7 +16159,7 @@ var Ph = ({ params: e }) => {
|
|
|
16159
16159
|
className: "chart-uplot w-full h-full"
|
|
16160
16160
|
}), /* @__PURE__ */ K("div", {
|
|
16161
16161
|
ref: g,
|
|
16162
|
-
className: "chart-tooltip pointer-events-auto select-text cursor-text absolute left-3 top-3 z-20 hidden max-w-[420px] rounded-md border bg-background/95 backdrop-blur text-[11px] shadow-lg transition-opacity duration-150",
|
|
16162
|
+
className: "chart-tooltip pointer-events-auto select-text cursor-text absolute left-3 top-3 z-20 hidden max-w-[420px] rounded-md border bg-background/95 text-foreground backdrop-blur text-[11px] shadow-lg transition-opacity duration-150",
|
|
16163
16163
|
style: { opacity: 1 }
|
|
16164
16164
|
})]
|
|
16165
16165
|
}), !Ee && /* @__PURE__ */ K("div", {
|
|
@@ -16768,7 +16768,7 @@ var Xh = ({ params: e }) => {
|
|
|
16768
16768
|
p((n) => Fr(n ?? M, e, t));
|
|
16769
16769
|
}, [M]), ue = U((e) => _(e), []);
|
|
16770
16770
|
return /* @__PURE__ */ q("div", {
|
|
16771
|
-
className: "flex flex-col h-full bg-background overflow-hidden",
|
|
16771
|
+
className: "flex flex-col h-full bg-background text-foreground overflow-hidden",
|
|
16772
16772
|
children: [/* @__PURE__ */ K(Jh, {
|
|
16773
16773
|
isPaused: v,
|
|
16774
16774
|
copied: m,
|
|
@@ -16814,7 +16814,7 @@ var Xh = ({ params: e }) => {
|
|
|
16814
16814
|
function Zh({ error: e, panelName: t, onRetry: n }) {
|
|
16815
16815
|
let { t: i } = te();
|
|
16816
16816
|
return /* @__PURE__ */ q("div", {
|
|
16817
|
-
className: "flex flex-col items-center justify-center h-full w-full bg-background p-4 text-center",
|
|
16817
|
+
className: "flex flex-col items-center justify-center h-full w-full bg-background text-foreground p-4 text-center",
|
|
16818
16818
|
role: "alert",
|
|
16819
16819
|
children: [
|
|
16820
16820
|
/* @__PURE__ */ K("div", {
|
|
@@ -16825,7 +16825,7 @@ function Zh({ error: e, panelName: t, onRetry: n }) {
|
|
|
16825
16825
|
})
|
|
16826
16826
|
}),
|
|
16827
16827
|
/* @__PURE__ */ K("h3", {
|
|
16828
|
-
className: "text-sm font-semibold mb-1",
|
|
16828
|
+
className: "text-sm font-semibold mb-1 text-foreground",
|
|
16829
16829
|
children: t ? i("panelErrorBoundary.namedTitle", { panelName: t }) : i("panelErrorBoundary.title")
|
|
16830
16830
|
}),
|
|
16831
16831
|
/* @__PURE__ */ K("p", {
|
|
@@ -2010,10 +2010,6 @@
|
|
|
2010
2010
|
background-color: #0000;
|
|
2011
2011
|
}
|
|
2012
2012
|
|
|
2013
|
-
.lerobot-root .bg-white {
|
|
2014
|
-
background-color: var(--color-white);
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
2013
|
.lerobot-root .fill-current {
|
|
2018
2014
|
fill: currentColor;
|
|
2019
2015
|
}
|
|
@@ -8170,8 +8166,8 @@
|
|
|
8170
8166
|
}
|
|
8171
8167
|
|
|
8172
8168
|
.lerobot-root .chart-uplot .u-select {
|
|
8173
|
-
background:
|
|
8174
|
-
border: 1px solid
|
|
8169
|
+
background: color-mix(in oklch, var(--primary) 8%, transparent);
|
|
8170
|
+
border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
|
|
8175
8171
|
}
|
|
8176
8172
|
|
|
8177
8173
|
.lerobot-root .chart-uplot .uplot canvas {
|
|
@@ -8180,7 +8176,7 @@
|
|
|
8180
8176
|
|
|
8181
8177
|
.lerobot-root .chart-tooltip {
|
|
8182
8178
|
scrollbar-width: thin;
|
|
8183
|
-
scrollbar-color:
|
|
8179
|
+
scrollbar-color: color-mix(in oklch, var(--muted-foreground) 55%, transparent) transparent;
|
|
8184
8180
|
}
|
|
8185
8181
|
|
|
8186
8182
|
.lerobot-root .chart-tooltip::-webkit-scrollbar {
|
|
@@ -8192,10 +8188,10 @@
|
|
|
8192
8188
|
}
|
|
8193
8189
|
|
|
8194
8190
|
.lerobot-root .chart-tooltip::-webkit-scrollbar-thumb {
|
|
8195
|
-
background:
|
|
8191
|
+
background: color-mix(in oklch, var(--muted-foreground) 45%, transparent);
|
|
8196
8192
|
border-radius: 9999px;
|
|
8197
8193
|
}
|
|
8198
8194
|
|
|
8199
8195
|
.lerobot-root .chart-tooltip::-webkit-scrollbar-thumb:hover {
|
|
8200
|
-
background:
|
|
8196
|
+
background: color-mix(in oklch, var(--muted-foreground) 70%, transparent);
|
|
8201
8197
|
}
|
package/dist-lib/lerobot.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, K as c, M as l, N as u, O as d, P as f, S as p, T as m, U as h, V as g, W as _, _ as v, a as y, b, c as x, ft as S, g as C, gt as w, h as T, ht as E, i as D, j as O, k as ee, l as te, lt as ne, m as k, mt as A, n as re, o as j, p as ie, pt as M, r as ae, s as N, st as oe, t as se, v as ce, w as P, x as F, y as I } from "./react-window-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, K as c, M as l, N as u, O as d, P as f, S as p, T as m, U as h, V as g, W as _, _ as v, a as y, b, c as x, ft as S, g as C, gt as w, h as T, ht as E, i as D, j as O, k as ee, l as te, lt as ne, m as k, mt as A, n as re, o as j, p as ie, pt as M, r as ae, s as N, st as oe, t as se, v as ce, w as P, x as F, y as I } from "./react-window-B1KnRC6j.js";
|
|
2
2
|
import { r as L, t as le } from "./workerManager-D6ovn2ln.js";
|
|
3
3
|
import * as ue from "react";
|
|
4
4
|
import R, { Suspense as de, createContext as fe, memo as pe, useCallback as z, useContext as me, useEffect as B, useMemo as V, useRef as H, useState as U } from "react";
|
|
@@ -3831,7 +3831,7 @@ function Js({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
3831
3831
|
"data-slot": "dialog-portal",
|
|
3832
3832
|
children: [/* @__PURE__ */ W(qs, {}), /* @__PURE__ */ G(s, {
|
|
3833
3833
|
"data-slot": "dialog-content",
|
|
3834
|
-
className: A("fixed top-[50vh] left-[50vw] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
|
|
3834
|
+
className: A("fixed top-[50vh] left-[50vw] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 text-foreground shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
|
|
3835
3835
|
...r,
|
|
3836
3836
|
children: [t, n && /* @__PURE__ */ G(g, {
|
|
3837
3837
|
"data-slot": "dialog-close",
|
|
@@ -3868,7 +3868,7 @@ function Xs({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
|
3868
3868
|
function Zs({ className: e, ...t }) {
|
|
3869
3869
|
return /* @__PURE__ */ W(c, {
|
|
3870
3870
|
"data-slot": "dialog-title",
|
|
3871
|
-
className: A("text-lg leading-none font-semibold", e),
|
|
3871
|
+
className: A("text-lg leading-none font-semibold text-foreground", e),
|
|
3872
3872
|
...t
|
|
3873
3873
|
});
|
|
3874
3874
|
}
|
|
@@ -5863,7 +5863,7 @@ var Dl = ({ theme: e, language: t, className: n, children: r, showToaster: i = !
|
|
|
5863
5863
|
forcedLanguage: t,
|
|
5864
5864
|
children: a ? /* @__PURE__ */ W("div", {
|
|
5865
5865
|
ref: s,
|
|
5866
|
-
className: A("lerobot-root h-full w-full relative", n),
|
|
5866
|
+
className: A("lerobot-root h-full w-full relative bg-background text-foreground", n),
|
|
5867
5867
|
children: /* @__PURE__ */ W(El, {
|
|
5868
5868
|
theme: e,
|
|
5869
5869
|
showToaster: i,
|
|
@@ -5872,7 +5872,7 @@ var Dl = ({ theme: e, language: t, className: n, children: r, showToaster: i = !
|
|
|
5872
5872
|
})
|
|
5873
5873
|
}) : /* @__PURE__ */ W("div", {
|
|
5874
5874
|
ref: s,
|
|
5875
|
-
className: A("lerobot-root h-full w-full", n),
|
|
5875
|
+
className: A("lerobot-root h-full w-full bg-background text-foreground", n),
|
|
5876
5876
|
children: /* @__PURE__ */ W(El, {
|
|
5877
5877
|
theme: e,
|
|
5878
5878
|
showToaster: i,
|
|
@@ -6559,7 +6559,7 @@ var Ll = ({ error: e, episodes: t, filteredEpisodes: n, isLoading: r, multiSelec
|
|
|
6559
6559
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
6560
6560
|
}, [o, y]), /* @__PURE__ */ G(he, { children: [/* @__PURE__ */ W("div", {
|
|
6561
6561
|
ref: u,
|
|
6562
|
-
className: `flex h-full min-w-0 shrink-0 flex-col overflow-x-hidden border-r ${a}`,
|
|
6562
|
+
className: `flex h-full min-w-0 shrink-0 flex-col overflow-x-hidden border-r bg-background ${a}`,
|
|
6563
6563
|
style: {
|
|
6564
6564
|
width: `${o}px`,
|
|
6565
6565
|
minWidth: `${t}px`,
|
|
@@ -6824,7 +6824,7 @@ var Kl = () => {
|
|
|
6824
6824
|
className: "h-16 border-t bg-background/50 px-6 flex items-center justify-center text-muted-foreground italic text-sm",
|
|
6825
6825
|
children: e("playback.noData")
|
|
6826
6826
|
}) : g || b ? /* @__PURE__ */ G("div", {
|
|
6827
|
-
className: "h-16 border-t bg-background px-4 flex items-center gap-4 animate-pulse motion-reduce:animate-none pointer-events-none opacity-60",
|
|
6827
|
+
className: "h-16 border-t bg-background text-foreground px-4 flex items-center gap-4 animate-pulse motion-reduce:animate-none pointer-events-none opacity-60",
|
|
6828
6828
|
role: "status",
|
|
6829
6829
|
"aria-live": "polite",
|
|
6830
6830
|
"aria-label": b?.message || e("common.loading"),
|
|
@@ -6860,7 +6860,7 @@ var Kl = () => {
|
|
|
6860
6860
|
})
|
|
6861
6861
|
]
|
|
6862
6862
|
}) : /* @__PURE__ */ G("div", {
|
|
6863
|
-
className: "h-16 border-t bg-background px-4 flex items-center gap-4",
|
|
6863
|
+
className: "h-16 border-t bg-background text-foreground px-4 flex items-center gap-4",
|
|
6864
6864
|
children: [
|
|
6865
6865
|
/* @__PURE__ */ G("div", {
|
|
6866
6866
|
className: "flex items-center gap-1",
|
|
@@ -7026,7 +7026,7 @@ var Kl = () => {
|
|
|
7026
7026
|
})
|
|
7027
7027
|
]
|
|
7028
7028
|
});
|
|
7029
|
-
}, Jl = R.lazy(async () => ({ default: (await import("./DockviewLayout-
|
|
7029
|
+
}, Jl = R.lazy(async () => ({ default: (await import("./DockviewLayout-DjLrI3Yt.js")).DockviewLayout }));
|
|
7030
7030
|
function Yl({ showSidebar: e = !0, showPlaybackBar: t = !0, className: n, sidebar: r, emptyState: i, sidebarHeader: a, showToaster: o = !0, onRetry: s }) {
|
|
7031
7031
|
let { t: c } = E(), { episodes: l, info: u, clearError: d, error: f } = N(), { tasks: p } = ol(), m = u !== null && l.length > 0, h = m && e && !!r, g = p.find((e) => e.phase !== "ready" && e.phase !== "idle" && e.phase !== "error"), _ = p.find((e) => e.phase === "error"), v = s ?? (() => {
|
|
7032
7032
|
d();
|
|
@@ -6732,7 +6732,7 @@ function fi({ container: e, children: t }) {
|
|
|
6732
6732
|
});
|
|
6733
6733
|
}
|
|
6734
6734
|
function pi() {
|
|
6735
|
-
return r.useContext(di) || (typeof document > "u" ? null : document.getElementById("lerobot-root"));
|
|
6735
|
+
return r.useContext(di) || (typeof document > "u" ? null : document.querySelector(".lerobot-root") ?? document.getElementById("lerobot-root"));
|
|
6736
6736
|
}
|
|
6737
6737
|
//#endregion
|
|
6738
6738
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|