@omg-dev/app 0.6.209 → 0.6.211
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-lib/{ChangelogPage-snxlHwvg.js → ChangelogPage-D7lDZqNT.js} +12 -1
- package/dist-lib/{SessionFilesPanel-8bijD8K_.js → SessionFilesPanel-BXH8e7U4.js} +1 -1
- package/dist-lib/{TermView-snbYcTCA.js → TermView-D_xz8JQB.js} +2 -2
- package/dist-lib/{board-page-DE1bGwJL.js → board-page-B5INp6Su.js} +1 -1
- package/dist-lib/{chat-engine-BRIEl-gD.js → chat-engine-9-IOIqiv.js} +1 -1
- package/dist-lib/{coding-agents-page-CvRXtrC6.js → coding-agents-page-8kKxOJxl.js} +1 -1
- package/dist-lib/{computer-page-BIHyZolO.js → computer-page-Cs62b1A6.js} +144 -165
- package/dist-lib/{computer-pointer-C3VB2laK.js → computer-pointer-iRZ5cqQA.js} +1309 -1157
- package/dist-lib/{connectors-page-BSJYTe6T.js → connectors-page-DSNldA6K.js} +1 -1
- package/dist-lib/{embedded-DYhLh9dW.js → embedded-DHN1s_lv.js} +19 -24
- package/dist-lib/expo-signin-sheet-BAxoha1c.js +246 -0
- package/dist-lib/index.js +1 -1
- package/dist-lib/{keyboard-BzO5S1u9.js → keyboard-DEDrZHyF.js} +1 -1
- package/dist-lib/{resume-session-sheet-B9v6Z_cX.js → resume-session-sheet-CVuRjZ9L.js} +1 -1
- package/dist-lib/{session-token-usage-DiEpmolb.js → session-token-usage-Dogt3ZFq.js} +1 -1
- package/dist-lib/{shipped-page-CwrYedEX.js → shipped-page-dLpyCSCy.js} +1 -1
- package/dist-lib/{streamdown-response-8m31E6GW.js → streamdown-response-l5J8y-4z.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/package.json +3 -3
- package/dist-lib/expo-signin-sheet-DzAtHkny.js +0 -234
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useMemo as Q, useEffect as B, useCallback as U, useRef as V, useContext as ie } from "react";
|
|
3
|
-
import { F as W, aa as Y, B as O, al as I, am as q, m as X, T as L, an as ce } from "./embedded-
|
|
3
|
+
import { F as W, aa as Y, B as O, al as I, am as q, m as X, T as L, an as ce } from "./embedded-DHN1s_lv.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.577.0 - ISC
|
|
6
6
|
*
|
|
@@ -123,11 +123,10 @@ function Ek({ service: e = ao }) {
|
|
|
123
123
|
/* @__PURE__ */ s("option", { value: "local", children: "Local" })
|
|
124
124
|
] })
|
|
125
125
|
] }),
|
|
126
|
-
/* @__PURE__ */ s("p", { className: "text-xs text-muted-foreground", children: "Auto uses cloud until Whistle is ready, then switches between recordings. Local transcribes after you stop. This setting applies to this browser." }),
|
|
127
126
|
/* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-4", children: [
|
|
128
|
-
/* @__PURE__ */ s("label", { htmlFor: "browser-transcription-language", className: "text-sm", children: "
|
|
127
|
+
/* @__PURE__ */ s("label", { htmlFor: "browser-transcription-language", className: "text-sm", children: "Language" }),
|
|
129
128
|
/* @__PURE__ */ f("select", { id: "browser-transcription-language", className: "rounded-md border border-border bg-background p-2 text-sm", value: t.language, onChange: (n) => e.configure({ language: n.target.value }), children: [
|
|
130
|
-
/* @__PURE__ */ s("option", { value: "auto", children: "
|
|
129
|
+
/* @__PURE__ */ s("option", { value: "auto", children: "Auto detect" }),
|
|
131
130
|
/* @__PURE__ */ s("option", { value: "en", children: "English" }),
|
|
132
131
|
/* @__PURE__ */ s("option", { value: "de", children: "German" }),
|
|
133
132
|
/* @__PURE__ */ s("option", { value: "fr", children: "French" }),
|
|
@@ -139,12 +138,8 @@ function Ek({ service: e = ao }) {
|
|
|
139
138
|
/* @__PURE__ */ s("option", { value: "yue", children: "Cantonese (cloud)" })
|
|
140
139
|
] })
|
|
141
140
|
] }),
|
|
142
|
-
/* @__PURE__ */ s("p", { role: "status", className: "text-xs text-muted-foreground", children: t.mode === "cloud" ? "Cloud transcription
|
|
143
|
-
t.
|
|
144
|
-
t.status === "error" && t.mode !== "cloud" && /* @__PURE__ */ f("div", { className: "text-xs", children: [
|
|
145
|
-
/* @__PURE__ */ s("p", { children: t.error }),
|
|
146
|
-
/* @__PURE__ */ s("button", { type: "button", className: "mt-2 underline", onClick: () => e.prepare(), children: "Retry download" })
|
|
147
|
-
] })
|
|
141
|
+
/* @__PURE__ */ s("p", { role: "status", className: "text-xs text-muted-foreground", children: t.mode === "cloud" ? "Cloud transcription" : Xu(t.language) ? t.status === "ready" ? t.mode === "auto" ? "On-device ready · cloud fallback" : "On-device ready · audio stays here" : t.status === "downloading" ? `Downloading · ${t.progress}%${t.mode === "auto" ? " · using cloud" : ""}` : t.status === "loading" ? "Loading on-device model…" : t.status === "error" ? t.mode === "auto" ? "Using cloud · local unavailable" : "Local unavailable · retry or use Cloud" : "Preparing on-device model…" : "This language needs cloud" }),
|
|
142
|
+
t.status === "error" && t.mode !== "cloud" && /* @__PURE__ */ s("div", { className: "text-xs", children: /* @__PURE__ */ s("button", { type: "button", className: "underline", onClick: () => e.prepare(), children: "Retry" }) })
|
|
148
143
|
] });
|
|
149
144
|
}
|
|
150
145
|
async function Ak(e, t) {
|
|
@@ -1472,7 +1467,7 @@ function Xn(e, t) {
|
|
|
1472
1467
|
}
|
|
1473
1468
|
const GS = Xn(
|
|
1474
1469
|
"StreamdownResponse",
|
|
1475
|
-
() => import("./streamdown-response-
|
|
1470
|
+
() => import("./streamdown-response-l5J8y-4z.js").then((e) => ({ default: e.StreamdownResponse }))
|
|
1476
1471
|
);
|
|
1477
1472
|
function oi({ className: e, from: t, ...n }) {
|
|
1478
1473
|
return /* @__PURE__ */ s(
|
|
@@ -6566,7 +6561,7 @@ function Xm(e) {
|
|
|
6566
6561
|
return !t || t.toLowerCase() === "unknown" ? null : t;
|
|
6567
6562
|
}
|
|
6568
6563
|
function sM() {
|
|
6569
|
-
return Xm("0.6.
|
|
6564
|
+
return Xm("0.6.211");
|
|
6570
6565
|
}
|
|
6571
6566
|
const Xg = sM();
|
|
6572
6567
|
function iM(e) {
|
|
@@ -14539,7 +14534,7 @@ function lF(e) {
|
|
|
14539
14534
|
const t = (e || "").split(":")[0].trim().split(/\s+/)[0] ?? "";
|
|
14540
14535
|
return /^(?:.*__)?(?:omg|lfg)_request_browser_login$/i.test(t);
|
|
14541
14536
|
}
|
|
14542
|
-
const cF = zc(() => import("./computer-page-
|
|
14537
|
+
const cF = zc(() => import("./computer-page-Cs62b1A6.js").then((e) => ({ default: e.ComputerPage })));
|
|
14543
14538
|
function dF({ origin: e }) {
|
|
14544
14539
|
const [t, n] = N(!1), r = new URL(e).hostname;
|
|
14545
14540
|
return /* @__PURE__ */ s("div", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-[10px] bg-muted", children: t ? /* @__PURE__ */ s("span", { "aria-label": `${r} website`, className: "text-xl font-semibold text-muted-foreground", children: r.replace(/^www\./, "").charAt(0).toUpperCase() }) : /* @__PURE__ */ s("img", { src: `${e}/favicon.ico`, alt: `${r} icon`, onError: () => n(!0), className: "size-7 object-contain" }) });
|
|
@@ -14701,7 +14696,7 @@ async function NF(e, t, n) {
|
|
|
14701
14696
|
const r = await t().catch(() => null);
|
|
14702
14697
|
return n() ? { type: vF, ...e, token: r?.token ?? null } : null;
|
|
14703
14698
|
}
|
|
14704
|
-
const kF = zc(() => import("./computer-page-
|
|
14699
|
+
const kF = zc(() => import("./computer-page-Cs62b1A6.js").then((e) => ({ default: e.ComputerPage }))), SF = zc(() => import("./expo-signin-sheet-BAxoha1c.js"));
|
|
14705
14700
|
function CF({ sessionId: e, user: t, agentBusy: n = !1 }) {
|
|
14706
14701
|
const [r, i] = N(null), o = EF(n), a = MF(n), [l, c] = N(!1), [d, u] = N(!1), h = qF(), [m, p] = N(() => WF(!0)), g = (Q) => {
|
|
14707
14702
|
p(Q), HF(Q);
|
|
@@ -21190,7 +21185,7 @@ const n7 = ds(function({
|
|
|
21190
21185
|
] }) : null;
|
|
21191
21186
|
}), r7 = Xn(
|
|
21192
21187
|
"session-files-panel",
|
|
21193
|
-
() => import("./SessionFilesPanel-
|
|
21188
|
+
() => import("./SessionFilesPanel-BXH8e7U4.js")
|
|
21194
21189
|
);
|
|
21195
21190
|
function fd() {
|
|
21196
21191
|
let e = document.activeElement;
|
|
@@ -24749,30 +24744,30 @@ function qP({ className: e, isStreaming: t, children: n, ...r }) {
|
|
|
24749
24744
|
function VP({ className: e, children: t, ...n }) {
|
|
24750
24745
|
return /* @__PURE__ */ s(ja, { className: M("mt-2 text-sm", e), ...n, children: /* @__PURE__ */ s(Eo, { className: "ai-live-text max-w-full opacity-90", children: t }) });
|
|
24751
24746
|
}
|
|
24752
|
-
const GP = Xn("OmgChatEngine", () => import("./chat-engine-
|
|
24747
|
+
const GP = Xn("OmgChatEngine", () => import("./chat-engine-9-IOIqiv.js"));
|
|
24753
24748
|
function KP() {
|
|
24754
|
-
const e = () => void import("./chat-engine-
|
|
24749
|
+
const e = () => void import("./chat-engine-9-IOIqiv.js").catch(() => {
|
|
24755
24750
|
}), t = globalThis.requestIdleCallback;
|
|
24756
24751
|
typeof t == "function" ? t(e, { timeout: 3e3 }) : setTimeout(e, 1500);
|
|
24757
24752
|
}
|
|
24758
24753
|
const f2 = Xn(
|
|
24759
24754
|
"TermView",
|
|
24760
|
-
() => import("./TermView-
|
|
24761
|
-
), mb = Xn("ShippedPage", () => import("./shipped-page-
|
|
24755
|
+
() => import("./TermView-D_xz8JQB.js").then((e) => ({ default: e.TermView }))
|
|
24756
|
+
), mb = Xn("ShippedPage", () => import("./shipped-page-dLpyCSCy.js")), YP = Xn(
|
|
24762
24757
|
"SessionTokenUsageDialog",
|
|
24763
|
-
() => import("./session-token-usage-
|
|
24758
|
+
() => import("./session-token-usage-Dogt3ZFq.js")
|
|
24764
24759
|
), XP = Xn(
|
|
24765
24760
|
"CodingAgentsPage",
|
|
24766
|
-
() => import("./coding-agents-page-
|
|
24767
|
-
), JP = Xn("ComputerPage", () => import("./computer-page-
|
|
24761
|
+
() => import("./coding-agents-page-8kKxOJxl.js")
|
|
24762
|
+
), JP = Xn("ComputerPage", () => import("./computer-page-Cs62b1A6.js")), m2 = Xn("BoardPage", () => import("./board-page-B5INp6Su.js")), QP = Xn(
|
|
24768
24763
|
"ConnectorsPage",
|
|
24769
|
-
() => import("./connectors-page-
|
|
24764
|
+
() => import("./connectors-page-DSNldA6K.js").then((e) => ({ default: e.ConnectorsPage }))
|
|
24770
24765
|
), hb = Xn(
|
|
24771
24766
|
"ResumeSessionSheet",
|
|
24772
|
-
() => import("./resume-session-sheet-
|
|
24767
|
+
() => import("./resume-session-sheet-CVuRjZ9L.js")
|
|
24773
24768
|
), ZP = Xn(
|
|
24774
24769
|
"ChangelogPage",
|
|
24775
|
-
() => import("./ChangelogPage-
|
|
24770
|
+
() => import("./ChangelogPage-D7lDZqNT.js")
|
|
24776
24771
|
), Oo = Ut("configured"), e9 = {
|
|
24777
24772
|
claude: "Claude",
|
|
24778
24773
|
codex: "Codex",
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { jsx as o, jsxs as v, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useState as E, useEffect as R, useLayoutEffect as Z, useCallback as $ } from "react";
|
|
3
|
+
import { createPortal as ee } from "react-dom";
|
|
4
|
+
import { R as te, a as ne, b as re, s as se, r as oe, c as K, d as I } from "./computer-pointer-iRZ5cqQA.js";
|
|
5
|
+
import { F as ce, a9 as ie, X as ae, L as le, aa as ue } from "./embedded-DHN1s_lv.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.577.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const de = [
|
|
13
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
14
|
+
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
15
|
+
], pe = ce("lock", de), he = "/api/computer/kiosk";
|
|
16
|
+
function fe(n, c = "expo.dev") {
|
|
17
|
+
try {
|
|
18
|
+
return n?.url && new URL(n.url).hostname.replace(/^www\./, "") || c;
|
|
19
|
+
} catch {
|
|
20
|
+
return c;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function me(n, c) {
|
|
24
|
+
if (!n.open || !n.rect || !n.screen || n.rect.width <= 0 || c <= 0) return null;
|
|
25
|
+
const a = c / n.rect.width;
|
|
26
|
+
return {
|
|
27
|
+
scale: a,
|
|
28
|
+
left: -n.rect.x * a,
|
|
29
|
+
top: -n.rect.y * a,
|
|
30
|
+
width: n.screen.width * a,
|
|
31
|
+
height: n.screen.height * a,
|
|
32
|
+
pageHeight: n.rect.height * a
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function ve(n, c, a, L) {
|
|
36
|
+
if (n.editing) return !0;
|
|
37
|
+
const l = a / c, b = L / c;
|
|
38
|
+
return (n.inputs ?? []).some((d) => l >= d.x && l <= d.x + d.width && b >= d.y && b <= d.y + d.height);
|
|
39
|
+
}
|
|
40
|
+
function xe(n) {
|
|
41
|
+
if (n === `
|
|
42
|
+
` || n === "\r") return 65293;
|
|
43
|
+
const c = n.codePointAt(0) ?? 0;
|
|
44
|
+
return c < 256 ? c : 16777216 + c;
|
|
45
|
+
}
|
|
46
|
+
const B = {
|
|
47
|
+
Enter: 65293,
|
|
48
|
+
Backspace: 65288,
|
|
49
|
+
Tab: 65289,
|
|
50
|
+
Escape: 65307,
|
|
51
|
+
ArrowLeft: 65361,
|
|
52
|
+
ArrowUp: 65362,
|
|
53
|
+
ArrowRight: 65363,
|
|
54
|
+
ArrowDown: 65364
|
|
55
|
+
}, M = 80, N = `
|
|
56
|
+
`.repeat(64), X = {
|
|
57
|
+
signup: "Sign up for Expo",
|
|
58
|
+
login: "Sign in to Expo"
|
|
59
|
+
};
|
|
60
|
+
function Ee({ mode: n, onClose: c, onOpenComputer: a }) {
|
|
61
|
+
const L = x(null), l = x(null), [b, d] = E(null), [y, U] = E(null), [J, _] = E(!1), [V, S] = E(!1), [W, q] = E(0), Y = x(null), w = x(null), O = x(null), g = x(null), F = x(null);
|
|
62
|
+
F.current = y, R(() => {
|
|
63
|
+
let e = !0;
|
|
64
|
+
const t = async () => {
|
|
65
|
+
try {
|
|
66
|
+
const u = await ue(he);
|
|
67
|
+
if (u.ok && e) {
|
|
68
|
+
const k = await u.json();
|
|
69
|
+
U((f) => JSON.stringify(f) === JSON.stringify(k) ? f : k);
|
|
70
|
+
}
|
|
71
|
+
} catch {
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
t();
|
|
75
|
+
const r = setInterval(t, 700);
|
|
76
|
+
return () => {
|
|
77
|
+
e = !1, clearInterval(r);
|
|
78
|
+
};
|
|
79
|
+
}, []), Z(() => {
|
|
80
|
+
const e = Y.current;
|
|
81
|
+
if (!e) return;
|
|
82
|
+
const t = () => q(e.clientWidth);
|
|
83
|
+
if (t(), typeof ResizeObserver > "u") return;
|
|
84
|
+
const r = new ResizeObserver(t);
|
|
85
|
+
return r.observe(e), () => r.disconnect();
|
|
86
|
+
}, []);
|
|
87
|
+
const P = !!y?.open;
|
|
88
|
+
R(() => {
|
|
89
|
+
if (!P || g.current || !w.current) return;
|
|
90
|
+
let e = !1;
|
|
91
|
+
return (async () => {
|
|
92
|
+
try {
|
|
93
|
+
const t = await ie("/api/computer");
|
|
94
|
+
if (e || !w.current) {
|
|
95
|
+
t.close();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const r = new te(w.current, new ne(t), { shared: !0 });
|
|
99
|
+
r.scaleViewport = !0, r.background = "transparent", r.viewOnly = !1, r.addEventListener("connect", () => {
|
|
100
|
+
_(!0), S(!1);
|
|
101
|
+
}), r.addEventListener("disconnect", () => {
|
|
102
|
+
l.current?.dispose(), l.current = null, g.current = null, _(!1), S(!0);
|
|
103
|
+
}), l.current = re(r, L.current, {
|
|
104
|
+
notice: d,
|
|
105
|
+
readRemoteText: oe,
|
|
106
|
+
setRemoteText: se,
|
|
107
|
+
focusKeyboard: () => O.current?.focus({ preventScroll: !0 })
|
|
108
|
+
}), g.current = r;
|
|
109
|
+
} catch {
|
|
110
|
+
S(!0);
|
|
111
|
+
}
|
|
112
|
+
})(), () => {
|
|
113
|
+
e = !0;
|
|
114
|
+
};
|
|
115
|
+
}, [P]), R(() => () => {
|
|
116
|
+
l.current?.dispose(), l.current = null;
|
|
117
|
+
try {
|
|
118
|
+
g.current?.disconnect();
|
|
119
|
+
} catch {
|
|
120
|
+
}
|
|
121
|
+
g.current = null;
|
|
122
|
+
}, []);
|
|
123
|
+
const p = y ? me(y, W) : null, z = $(() => w.current?.querySelector("canvas") ?? null, []);
|
|
124
|
+
R(() => {
|
|
125
|
+
const e = Y.current;
|
|
126
|
+
if (!e) return;
|
|
127
|
+
let t = null, r = 0;
|
|
128
|
+
const u = (i) => {
|
|
129
|
+
i.preventDefault(), i.stopPropagation();
|
|
130
|
+
const s = i.touches[0];
|
|
131
|
+
if (!s || i.touches.length !== 1) {
|
|
132
|
+
t = null;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
t = { x: s.clientX, y: s.clientY, at: Date.now(), lastY: s.clientY, moved: !1 }, r = 0;
|
|
136
|
+
}, k = (i) => {
|
|
137
|
+
i.preventDefault(), i.stopPropagation();
|
|
138
|
+
const s = i.touches[0], m = z();
|
|
139
|
+
if (!(!t || !s || !m) && (Math.hypot(s.clientX - t.x, s.clientY - t.y) > 8 && (t.moved = !0), !!t.moved))
|
|
140
|
+
for (r += t.lastY - s.clientY, t.lastY = s.clientY; Math.abs(r) >= M; ) {
|
|
141
|
+
const h = r > 0;
|
|
142
|
+
r += h ? -M : M, m.dispatchEvent(new WheelEvent("wheel", { bubbles: !0, cancelable: !0, clientX: s.clientX, clientY: s.clientY, deltaY: h ? 60 : -60 }));
|
|
143
|
+
}
|
|
144
|
+
}, f = (i) => {
|
|
145
|
+
i.preventDefault(), i.stopPropagation();
|
|
146
|
+
const s = t;
|
|
147
|
+
t = null;
|
|
148
|
+
const m = z();
|
|
149
|
+
if (!s || s.moved || !m || Date.now() - s.at > 600) return;
|
|
150
|
+
const h = { x: s.x, y: s.y };
|
|
151
|
+
I(m, h, "mousemove", 0), I(m, h, "mousedown", 1, 0), I(m, h, "mouseup", 0, 0);
|
|
152
|
+
const j = F.current, A = e.getBoundingClientRect(), C = O.current;
|
|
153
|
+
if (!C || !j?.rect) return;
|
|
154
|
+
const G = A.width / j.rect.width;
|
|
155
|
+
ve(j, G, h.x - A.left, h.y - A.top) ? (C.value = N, C.focus({ preventScroll: !0 })) : C.blur();
|
|
156
|
+
};
|
|
157
|
+
return e.addEventListener("touchstart", u, { passive: !1, capture: !0 }), e.addEventListener("touchmove", k, { passive: !1, capture: !0 }), e.addEventListener("touchend", f, { passive: !1, capture: !0 }), e.addEventListener("touchcancel", f, { passive: !1, capture: !0 }), () => {
|
|
158
|
+
e.removeEventListener("touchstart", u, { capture: !0 }), e.removeEventListener("touchmove", k, { capture: !0 }), e.removeEventListener("touchend", f, { capture: !0 }), e.removeEventListener("touchcancel", f, { capture: !0 });
|
|
159
|
+
};
|
|
160
|
+
}, [z]);
|
|
161
|
+
const D = (e) => {
|
|
162
|
+
const t = g.current;
|
|
163
|
+
t && (t.sendKey(e, null, !0), t.sendKey(e, null, !1));
|
|
164
|
+
}, H = fe(y), T = P && J && !!p;
|
|
165
|
+
return ee(
|
|
166
|
+
/* @__PURE__ */ o("div", { className: "fixed inset-0 z-[100] flex items-end justify-center bg-black/40 sm:items-center", "data-testid": "expo-signin-sheet-backdrop", children: /* @__PURE__ */ v(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
ref: L,
|
|
170
|
+
role: "dialog",
|
|
171
|
+
"aria-label": X[n],
|
|
172
|
+
"data-testid": "expo-signin-sheet",
|
|
173
|
+
className: "flex h-[92dvh] w-full flex-col overflow-hidden rounded-t-2xl border bg-background shadow-2xl sm:h-[min(844px,92dvh)] sm:w-[390px] sm:rounded-2xl",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ v("div", { className: "flex shrink-0 items-center gap-2 border-b px-3 py-2", children: [
|
|
176
|
+
/* @__PURE__ */ v("div", { className: "min-w-0 flex-1", children: [
|
|
177
|
+
/* @__PURE__ */ o("p", { className: "truncate text-sm font-semibold", "data-testid": "expo-signin-sheet-title", children: X[n] }),
|
|
178
|
+
/* @__PURE__ */ v("p", { className: "flex items-center gap-1 text-xs text-muted-foreground", "data-testid": "expo-signin-sheet-host", children: [
|
|
179
|
+
/* @__PURE__ */ o(pe, { className: "size-3", "aria-hidden": !0 }),
|
|
180
|
+
H
|
|
181
|
+
] })
|
|
182
|
+
] }),
|
|
183
|
+
/* @__PURE__ */ o(
|
|
184
|
+
"button",
|
|
185
|
+
{
|
|
186
|
+
type: "button",
|
|
187
|
+
className: "inline-flex size-8 items-center justify-center rounded-full text-muted-foreground hover:bg-muted",
|
|
188
|
+
onClick: c,
|
|
189
|
+
"aria-label": "Cancel and close",
|
|
190
|
+
"data-testid": "expo-signin-sheet-close",
|
|
191
|
+
children: /* @__PURE__ */ o(ae, { className: "size-5", "aria-hidden": !0 })
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ v("div", { ref: Y, className: "relative min-h-0 flex-1 touch-none select-none overflow-hidden bg-white", "data-testid": "expo-signin-sheet-view", children: [
|
|
196
|
+
/* @__PURE__ */ o("div", { className: "absolute left-0 top-0 overflow-hidden", style: p ? { width: "100%", height: p.pageHeight } : { width: 0, height: 0 }, children: /* @__PURE__ */ o("div", { ref: w, className: "absolute", style: p ? { left: p.left, top: p.top, width: p.width, height: p.height } : { left: 0, top: 0, width: 1, height: 1 } }) }),
|
|
197
|
+
T ? null : /* @__PURE__ */ o("div", { className: "absolute inset-0 flex items-center justify-center bg-background", "data-testid": "expo-signin-sheet-loading", children: /* @__PURE__ */ o("span", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: V ? "Lost the connection to the Computer." : /* @__PURE__ */ v(Q, { children: [
|
|
198
|
+
/* @__PURE__ */ o(le, { className: "size-4 animate-spin", "aria-hidden": !0 }),
|
|
199
|
+
"Opening ",
|
|
200
|
+
H,
|
|
201
|
+
"…"
|
|
202
|
+
] }) }) }),
|
|
203
|
+
/* @__PURE__ */ o(
|
|
204
|
+
"textarea",
|
|
205
|
+
{
|
|
206
|
+
ref: O,
|
|
207
|
+
"aria-hidden": !0,
|
|
208
|
+
tabIndex: -1,
|
|
209
|
+
className: "pointer-events-none absolute left-0 top-0 size-px opacity-0",
|
|
210
|
+
style: { fontSize: 16 },
|
|
211
|
+
autoCapitalize: "off",
|
|
212
|
+
autoCorrect: "off",
|
|
213
|
+
spellCheck: !1,
|
|
214
|
+
onInput: (e) => {
|
|
215
|
+
const t = e.currentTarget, r = t.value;
|
|
216
|
+
if (r.length < N.length)
|
|
217
|
+
for (let u = r.length; u < N.length; u++) D(B.Backspace);
|
|
218
|
+
else
|
|
219
|
+
for (const u of r.slice(N.length)) D(xe(u));
|
|
220
|
+
t.value = N;
|
|
221
|
+
},
|
|
222
|
+
onKeyDown: (e) => {
|
|
223
|
+
if (e.key === "Enter" || e.key === "Backspace") return;
|
|
224
|
+
const t = B[e.key];
|
|
225
|
+
t && (e.preventDefault(), D(t));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
] }),
|
|
230
|
+
/* @__PURE__ */ v("div", { className: "flex shrink-0 items-center justify-center gap-4 border-t px-3 py-2", role: "toolbar", "aria-label": "Clipboard", children: [
|
|
231
|
+
/* @__PURE__ */ o("button", { type: "button", className: "h-10 min-w-16 rounded-md bg-secondary px-3 text-sm disabled:opacity-50", disabled: !T, ...K(() => void l.current?.pasteFromDevice()), "aria-label": "Paste from this device", children: "Paste" }),
|
|
232
|
+
/* @__PURE__ */ o("button", { type: "button", className: "h-10 min-w-16 rounded-md bg-secondary px-3 text-sm disabled:opacity-50", disabled: !T, ...K(() => void l.current?.copy()), "aria-label": "Copy selected text from the Computer", children: "Copy" })
|
|
233
|
+
] }),
|
|
234
|
+
b ? /* @__PURE__ */ o("p", { role: "status", className: "px-3 text-center text-xs text-muted-foreground", children: b }) : null,
|
|
235
|
+
/* @__PURE__ */ o("div", { className: "flex shrink-0 justify-center border-t px-3 py-1.5", children: /* @__PURE__ */ o("button", { type: "button", className: "text-xs text-muted-foreground underline-offset-2 hover:underline", onClick: a, "data-testid": "expo-signin-sheet-full-computer", children: "Open the full Computer view" }) })
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
) }),
|
|
239
|
+
document.body
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
export {
|
|
243
|
+
X as EXPO_SHEET_TITLE,
|
|
244
|
+
Ee as ExpoSigninSheet,
|
|
245
|
+
Ee as default
|
|
246
|
+
};
|
package/dist-lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@tanstack/react-router";
|
|
4
|
-
import { ar as m, as as o, at as s } from "./embedded-
|
|
4
|
+
import { ar as m, as as o, at as s } from "./embedded-DHN1s_lv.js";
|
|
5
5
|
export {
|
|
6
6
|
m as OmgAppSurface,
|
|
7
7
|
o as OmgSettingsSurface,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { r as Y, P as Z, a as de, f as ue, g as me, h as he, X as ee, A as _, R as te, i as pe, S as fe, C as ge, j as se, T as xe, k as be, l as Ne, m as ve, L as we } from "./embedded-
|
|
2
|
+
import { r as Y, P as Z, a as de, f as ue, g as me, h as he, X as ee, A as _, R as te, i as pe, S as fe, C as ge, j as se, T as xe, k as be, l as Ne, m as ve, L as we } from "./embedded-DHN1s_lv.js";
|
|
3
3
|
import { cn as m } from "cnfast";
|
|
4
4
|
import { useState as a, useRef as $, useEffect as A, useCallback as ye } from "react";
|
|
5
5
|
function Se(n) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as a, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { a as $, D as C, b as T, c as M, d as D, G as S, e as L, t as F, L as R, o as j } from "./embedded-
|
|
2
|
+
import { a as $, D as C, b as T, c as M, d as D, G as S, e as L, t as F, L as R, o as j } from "./embedded-DHN1s_lv.js";
|
|
3
3
|
import { useState as g, useCallback as z, useEffect as P } from "react";
|
|
4
4
|
import "@base-ui/react/collapsible";
|
|
5
5
|
import { cn as U } from "cnfast";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as v, useRef as ue, useContext as Le, useMemo as Me } from "react";
|
|
3
|
-
import { F as _e, U as me, H as $e, V as L, W as fe, Y as Se, Z as Pe, I as je, B as Fe, L as he, J as Ge, j as X, m as Ye, R as Be, T as Ke, _ as Ue, x as pe, u as He, $ as Ve, a as C, a0 as N, a1 as D, y as z, a2 as q, a3 as Je, a4 as Xe, a5 as qe, a6 as Qe, a7 as Oe, p as We, a8 as Ze } from "./embedded-
|
|
3
|
+
import { F as _e, U as me, H as $e, V as L, W as fe, Y as Se, Z as Pe, I as je, B as Fe, L as he, J as Ge, j as X, m as Ye, R as Be, T as Ke, _ as Ue, x as pe, u as He, $ as Ve, a as C, a0 as N, a1 as D, y as z, a2 as q, a3 as Je, a4 as Xe, a5 as qe, a6 as Qe, a7 as Oe, p as We, a8 as Ze } from "./embedded-DHN1s_lv.js";
|
|
4
4
|
import { cn as M } from "cnfast";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.577.0 - ISC
|
|
@@ -3,7 +3,7 @@ import { useMemo as ze, useState as We, useEffect as De } from "react";
|
|
|
3
3
|
import { r as Ue, t as E, o as Ve, u as Ce, y as _, A as He, a as Je, $ as Y } from "./chunk-YOKDWASO-B5AA2F8u.js";
|
|
4
4
|
import { b as Qe, c as Xe, a as Ye, d as Ze } from "./engine-compile-D_stzVMa.js";
|
|
5
5
|
import { cn as Ke } from "cnfast";
|
|
6
|
-
import { ap as et, aq as tt } from "./embedded-
|
|
6
|
+
import { ap as et, aq as tt } from "./embedded-DHN1s_lv.js";
|
|
7
7
|
const d = (
|
|
8
8
|
/** @type {const} */
|
|
9
9
|
{
|