@omg-dev/app 0.6.210 → 0.6.212
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-Dp-ue7MR.js → ChangelogPage-DCNaY-sr.js} +13 -1
- package/dist-lib/{SessionFilesPanel-BEsMBxDe.js → SessionFilesPanel-CfkEKcZI.js} +1 -1
- package/dist-lib/{TermView-pH7R8GPy.js → TermView-o2MgHCz_.js} +2 -2
- package/dist-lib/{board-page-CcyFMSbr.js → board-page-z1Jjd9wk.js} +1 -1
- package/dist-lib/{chat-engine-DvwCv6Tr.js → chat-engine-DLGMy3IH.js} +1 -1
- package/dist-lib/{coding-agents-page-CtwEQuEu.js → coding-agents-page-BSCXdLWC.js} +1 -1
- package/dist-lib/{computer-page-BXjUKQ19.js → computer-page-_4TYKC7j.js} +144 -165
- package/dist-lib/{computer-pointer-C3VB2laK.js → computer-pointer-CZ-tnHkw.js} +1309 -1157
- package/dist-lib/{connectors-page-BpnBb51Z.js → connectors-page-CopZTieF.js} +1 -1
- package/dist-lib/{embedded-DbPku-MI.js → embedded-B_ymIz97.js} +15 -15
- package/dist-lib/expo-signin-sheet-BzsKPAam.js +246 -0
- package/dist-lib/index.js +1 -1
- package/dist-lib/{keyboard-pmRTmquI.js → keyboard-OCqD2cDm.js} +1 -1
- package/dist-lib/{resume-session-sheet-BbShw8SQ.js → resume-session-sheet-9fMPRNvR.js} +1 -1
- package/dist-lib/{session-token-usage-ZG7DpMu1.js → session-token-usage-B67WiKJN.js} +1 -1
- package/dist-lib/{shipped-page-BqKBW8p0.js → shipped-page-DpnnMlPz.js} +1 -1
- package/dist-lib/{streamdown-response-C-LQgtwq.js → streamdown-response-CsVevp3-.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/package.json +3 -3
- package/dist-lib/expo-signin-sheet-DLKpuDBL.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-B_ymIz97.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.577.0 - ISC
|
|
6
6
|
*
|
|
@@ -1467,7 +1467,7 @@ function Xn(e, t) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
const GS = Xn(
|
|
1469
1469
|
"StreamdownResponse",
|
|
1470
|
-
() => import("./streamdown-response-
|
|
1470
|
+
() => import("./streamdown-response-CsVevp3-.js").then((e) => ({ default: e.StreamdownResponse }))
|
|
1471
1471
|
);
|
|
1472
1472
|
function oi({ className: e, from: t, ...n }) {
|
|
1473
1473
|
return /* @__PURE__ */ s(
|
|
@@ -6561,7 +6561,7 @@ function Xm(e) {
|
|
|
6561
6561
|
return !t || t.toLowerCase() === "unknown" ? null : t;
|
|
6562
6562
|
}
|
|
6563
6563
|
function sM() {
|
|
6564
|
-
return Xm("0.6.
|
|
6564
|
+
return Xm("0.6.212");
|
|
6565
6565
|
}
|
|
6566
6566
|
const Xg = sM();
|
|
6567
6567
|
function iM(e) {
|
|
@@ -14534,7 +14534,7 @@ function lF(e) {
|
|
|
14534
14534
|
const t = (e || "").split(":")[0].trim().split(/\s+/)[0] ?? "";
|
|
14535
14535
|
return /^(?:.*__)?(?:omg|lfg)_request_browser_login$/i.test(t);
|
|
14536
14536
|
}
|
|
14537
|
-
const cF = zc(() => import("./computer-page-
|
|
14537
|
+
const cF = zc(() => import("./computer-page-_4TYKC7j.js").then((e) => ({ default: e.ComputerPage })));
|
|
14538
14538
|
function dF({ origin: e }) {
|
|
14539
14539
|
const [t, n] = N(!1), r = new URL(e).hostname;
|
|
14540
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" }) });
|
|
@@ -14696,7 +14696,7 @@ async function NF(e, t, n) {
|
|
|
14696
14696
|
const r = await t().catch(() => null);
|
|
14697
14697
|
return n() ? { type: vF, ...e, token: r?.token ?? null } : null;
|
|
14698
14698
|
}
|
|
14699
|
-
const kF = zc(() => import("./computer-page-
|
|
14699
|
+
const kF = zc(() => import("./computer-page-_4TYKC7j.js").then((e) => ({ default: e.ComputerPage }))), SF = zc(() => import("./expo-signin-sheet-BzsKPAam.js"));
|
|
14700
14700
|
function CF({ sessionId: e, user: t, agentBusy: n = !1 }) {
|
|
14701
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) => {
|
|
14702
14702
|
p(Q), HF(Q);
|
|
@@ -21185,7 +21185,7 @@ const n7 = ds(function({
|
|
|
21185
21185
|
] }) : null;
|
|
21186
21186
|
}), r7 = Xn(
|
|
21187
21187
|
"session-files-panel",
|
|
21188
|
-
() => import("./SessionFilesPanel-
|
|
21188
|
+
() => import("./SessionFilesPanel-CfkEKcZI.js")
|
|
21189
21189
|
);
|
|
21190
21190
|
function fd() {
|
|
21191
21191
|
let e = document.activeElement;
|
|
@@ -24744,30 +24744,30 @@ function qP({ className: e, isStreaming: t, children: n, ...r }) {
|
|
|
24744
24744
|
function VP({ className: e, children: t, ...n }) {
|
|
24745
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 }) });
|
|
24746
24746
|
}
|
|
24747
|
-
const GP = Xn("OmgChatEngine", () => import("./chat-engine-
|
|
24747
|
+
const GP = Xn("OmgChatEngine", () => import("./chat-engine-DLGMy3IH.js"));
|
|
24748
24748
|
function KP() {
|
|
24749
|
-
const e = () => void import("./chat-engine-
|
|
24749
|
+
const e = () => void import("./chat-engine-DLGMy3IH.js").catch(() => {
|
|
24750
24750
|
}), t = globalThis.requestIdleCallback;
|
|
24751
24751
|
typeof t == "function" ? t(e, { timeout: 3e3 }) : setTimeout(e, 1500);
|
|
24752
24752
|
}
|
|
24753
24753
|
const f2 = Xn(
|
|
24754
24754
|
"TermView",
|
|
24755
|
-
() => import("./TermView-
|
|
24756
|
-
), mb = Xn("ShippedPage", () => import("./shipped-page-
|
|
24755
|
+
() => import("./TermView-o2MgHCz_.js").then((e) => ({ default: e.TermView }))
|
|
24756
|
+
), mb = Xn("ShippedPage", () => import("./shipped-page-DpnnMlPz.js")), YP = Xn(
|
|
24757
24757
|
"SessionTokenUsageDialog",
|
|
24758
|
-
() => import("./session-token-usage-
|
|
24758
|
+
() => import("./session-token-usage-B67WiKJN.js")
|
|
24759
24759
|
), XP = Xn(
|
|
24760
24760
|
"CodingAgentsPage",
|
|
24761
|
-
() => import("./coding-agents-page-
|
|
24762
|
-
), JP = Xn("ComputerPage", () => import("./computer-page-
|
|
24761
|
+
() => import("./coding-agents-page-BSCXdLWC.js")
|
|
24762
|
+
), JP = Xn("ComputerPage", () => import("./computer-page-_4TYKC7j.js")), m2 = Xn("BoardPage", () => import("./board-page-z1Jjd9wk.js")), QP = Xn(
|
|
24763
24763
|
"ConnectorsPage",
|
|
24764
|
-
() => import("./connectors-page-
|
|
24764
|
+
() => import("./connectors-page-CopZTieF.js").then((e) => ({ default: e.ConnectorsPage }))
|
|
24765
24765
|
), hb = Xn(
|
|
24766
24766
|
"ResumeSessionSheet",
|
|
24767
|
-
() => import("./resume-session-sheet-
|
|
24767
|
+
() => import("./resume-session-sheet-9fMPRNvR.js")
|
|
24768
24768
|
), ZP = Xn(
|
|
24769
24769
|
"ChangelogPage",
|
|
24770
|
-
() => import("./ChangelogPage-
|
|
24770
|
+
() => import("./ChangelogPage-DCNaY-sr.js")
|
|
24771
24771
|
), Oo = Ut("configured"), e9 = {
|
|
24772
24772
|
claude: "Claude",
|
|
24773
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-CZ-tnHkw.js";
|
|
5
|
+
import { F as ce, a9 as ie, X as ae, L as le, aa as ue } from "./embedded-B_ymIz97.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-B_ymIz97.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-B_ymIz97.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-B_ymIz97.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-B_ymIz97.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-B_ymIz97.js";
|
|
7
7
|
const d = (
|
|
8
8
|
/** @type {const} */
|
|
9
9
|
{
|