@omg-dev/app 0.6.38 → 0.6.40
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-bXEhk45x.js → ChangelogPage-dL9-99b9.js} +53 -1
- package/dist-lib/{SessionFilesPanel-BOp2-2Qk.js → SessionFilesPanel-BWPkDYyw.js} +27 -27
- package/dist-lib/{TermView-yUJq4X6a.js → TermView-eWIr0fSc.js} +2 -2
- package/dist-lib/agent-muse.svg +1 -0
- package/dist-lib/{board-page-DSsxqeVL.js → board-page-B6x3zrtp.js} +15 -15
- package/dist-lib/{chat-engine-BpLW78aS.js → chat-engine-BWY0J0Ta.js} +1 -1
- package/dist-lib/{coding-agents-page-Mny8ZCKg.js → coding-agents-page-9PkCTn4Y.js} +1 -1
- package/dist-lib/{computer-page-CBgIW1Gu.js → computer-page-DHuT1Cfh.js} +2 -2
- package/dist-lib/{embedded-CblBLBh9.js → embedded-crKLFtim.js} +13300 -11646
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +1 -1
- package/dist-lib/{keyboard-BI3LBFBT.js → keyboard-DMPtynCa.js} +1 -1
- package/dist-lib/{resume-session-sheet-DxGDw7a4.js → resume-session-sheet-Bi2kk40p.js} +1 -1
- package/dist-lib/{session-token-usage-umnfevLI.js → session-token-usage-BTTeBcxk.js} +1 -1
- package/dist-lib/{shipped-page-Cgc62O38.js → shipped-page-Dy02HIBa.js} +64 -62
- package/dist-lib/{streamdown-response-Ba03vt5J.js → streamdown-response-BD6XPrc9.js} +1 -1
- package/dist-lib/styles.css +1 -1
- package/package.json +2 -2
package/dist-lib/index.d.ts
CHANGED
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 {
|
|
4
|
+
import { ah as m, ai as o, aj as i } from "./embedded-crKLFtim.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 R } from "react/jsx-runtime";
|
|
2
|
-
import { r as X, P as J, a as le, g as oe, h as ie, i as ce, X as K, A as P, R as Y, j as de, S as ue, k as Z, T as me, l as he, m as pe, C as fe, L as ge } from "./embedded-
|
|
2
|
+
import { r as X, P as J, a as le, g as oe, h as ie, i as ce, X as K, A as P, R as Y, j as de, S as ue, k as Z, T as me, l as he, m as pe, C as fe, L as ge } from "./embedded-crKLFtim.js";
|
|
3
3
|
import { cn as x } from "cnfast";
|
|
4
4
|
import { useState as a, useRef as E, useEffect as C, useCallback as xe } from "react";
|
|
5
5
|
function be(r) {
|
|
@@ -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 F, t as L, L as R } from "./embedded-
|
|
2
|
+
import { a as $, D as C, b as T, c as M, d as D, G as S, e as F, t as L, L as R } from "./embedded-crKLFtim.js";
|
|
3
3
|
import { useState as g, useCallback as j, useEffect as z } from "react";
|
|
4
4
|
import "@base-ui/react/collapsible";
|
|
5
5
|
import { cn as P } from "cnfast";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r, Fragment as ce } from "react/jsx-runtime";
|
|
2
|
-
import { useState as f, useEffect as v, useRef as ue, useContext as
|
|
3
|
-
import { f as
|
|
4
|
-
import { cn as
|
|
2
|
+
import { useState as f, useEffect as v, useRef as ue, useContext as Le, useMemo as Me } from "react";
|
|
3
|
+
import { f as _e, E as me, F as $e, H as L, I as fe, J as Se, N as Pe, O as Fe, B as je, L as he, Q as Ge, k as J, C as Ye, R as Be, T as Ke, U as Ue, v as pe, q as He, V as Ve, a as C, W as N, Y as D, w as z, Z as Q, _ as qe, $ as Je, a0 as Qe, a1 as Xe, a2 as Oe, n as We, a3 as Ze } from "./embedded-crKLFtim.js";
|
|
4
|
+
import { cn as M } from "cnfast";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.577.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const et = [
|
|
12
12
|
[
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
@@ -19,19 +19,19 @@ const Ze = [
|
|
|
19
19
|
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
20
20
|
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
21
21
|
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
22
|
-
],
|
|
22
|
+
], tt = _e("message-square-text", et), O = "lfg-notification-read-state", rt = "lfg_notification_reads_v1:";
|
|
23
23
|
function be(n) {
|
|
24
|
-
return `${
|
|
24
|
+
return `${rt}${n?.trim().toLowerCase() || "__device__"}`;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function st(n) {
|
|
27
27
|
if (!n || typeof n != "object") return null;
|
|
28
28
|
const i = n, c = typeof i.through == "number" && Number.isFinite(i.through) ? Math.max(0, i.through) : 0, l = Array.isArray(i.ids) ? i.ids.filter((u) => typeof u == "string").slice(-500) : [];
|
|
29
29
|
return { through: c, ids: [...new Set(l)] };
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function R(n) {
|
|
32
32
|
if (typeof window > "u") return null;
|
|
33
33
|
try {
|
|
34
|
-
return
|
|
34
|
+
return st(JSON.parse(localStorage.getItem(be(n)) ?? "null"));
|
|
35
35
|
} catch {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
@@ -43,27 +43,27 @@ function xe(n, i) {
|
|
|
43
43
|
})
|
|
44
44
|
)), i;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function _(n) {
|
|
47
47
|
return `shipped:${n.id}:${n.rev}`;
|
|
48
48
|
}
|
|
49
49
|
function X(n, i) {
|
|
50
50
|
return n ? i.ts > n.through && !n.ids.includes(i.id) : !1;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const c =
|
|
52
|
+
function nt(n, i) {
|
|
53
|
+
const c = R(n) ?? { through: 0, ids: [] };
|
|
54
54
|
return c.ids.includes(i) ? c : xe(n, {
|
|
55
55
|
...c,
|
|
56
56
|
ids: [...c.ids, i].slice(-500)
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
function ge(n, i) {
|
|
60
|
-
const c =
|
|
60
|
+
const c = R(n) ?? { through: 0, ids: [] };
|
|
61
61
|
return xe(n, {
|
|
62
62
|
through: Math.max(c.through, i),
|
|
63
63
|
ids: c.ids
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function at({
|
|
67
67
|
path: n,
|
|
68
68
|
cacheKey: i,
|
|
69
69
|
children: c
|
|
@@ -73,7 +73,7 @@ function nt({
|
|
|
73
73
|
c
|
|
74
74
|
] });
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function it({
|
|
77
77
|
items: n,
|
|
78
78
|
total: i,
|
|
79
79
|
onExpand: c
|
|
@@ -90,6 +90,8 @@ function at({
|
|
|
90
90
|
kind: l.kind,
|
|
91
91
|
caption: l.caption,
|
|
92
92
|
name: l.name,
|
|
93
|
+
mimeType: l.mimeType,
|
|
94
|
+
size: l.size,
|
|
93
95
|
version: l.version,
|
|
94
96
|
cacheKey: l.updatedAt
|
|
95
97
|
}),
|
|
@@ -110,7 +112,7 @@ function at({
|
|
|
110
112
|
// 52px box is two words of giant text — unreadable, and it costs a
|
|
111
113
|
// fetch + parse per row. The Artifacts page is where previews belong.
|
|
112
114
|
/* @__PURE__ */ r("span", { className: "flex size-full items-center justify-center bg-primary/10 text-primary", children: /* @__PURE__ */ r(Xe, { className: "size-4" }) })
|
|
113
|
-
) : /* @__PURE__ */ r("span", { className: "flex size-full items-center justify-center bg-black/80 text-white/80", children: /* @__PURE__ */ r(
|
|
115
|
+
) : l.kind === "file" ? /* @__PURE__ */ r("span", { className: "flex size-full items-center justify-center bg-muted text-muted-foreground", children: /* @__PURE__ */ r(Oe, { className: "size-4" }) }) : /* @__PURE__ */ r("span", { className: "flex size-full items-center justify-center bg-black/80 text-white/80", children: /* @__PURE__ */ r(We, { className: "size-4" }) }),
|
|
114
116
|
u > 0 ? /* @__PURE__ */ o("span", { className: "absolute inset-x-0 bottom-0 bg-black/55 py-0.5 text-center text-[9px] font-semibold text-white", children: [
|
|
115
117
|
"+",
|
|
116
118
|
u
|
|
@@ -119,7 +121,7 @@ function at({
|
|
|
119
121
|
}
|
|
120
122
|
);
|
|
121
123
|
}
|
|
122
|
-
function
|
|
124
|
+
function lt(n, i) {
|
|
123
125
|
const c = (p) => {
|
|
124
126
|
const g = new Date(p);
|
|
125
127
|
return new Date(g.getFullYear(), g.getMonth(), g.getDate()).getTime();
|
|
@@ -133,7 +135,7 @@ function it(n, i) {
|
|
|
133
135
|
...u.getFullYear() === new Date(i).getFullYear() ? {} : { year: "numeric" }
|
|
134
136
|
});
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function mt({
|
|
137
139
|
onOpenSession: n,
|
|
138
140
|
onOpenArtifactSession: i,
|
|
139
141
|
onReviewSession: c,
|
|
@@ -142,22 +144,22 @@ function ut({
|
|
|
142
144
|
artifactsOnly: p = !1,
|
|
143
145
|
active: g = !0
|
|
144
146
|
}) {
|
|
145
|
-
const h = p ? "artifacts" : "feed",
|
|
146
|
-
() => p ? null :
|
|
147
|
-
), [
|
|
147
|
+
const h = p ? "artifacts" : "feed", $ = p ? me(D) : null, S = p ? null : me(Q), [m, P] = f(() => S?.items ?? null), [F, W] = f(() => S?.total ?? 0), [j, Z] = f(!1), [w, k] = f(
|
|
148
|
+
() => p ? null : R(u)
|
|
149
|
+
), [G, ee] = f(!1), [Y, te] = f(null), { questions: b, busy: ye, dismissAll: ve } = $e(), [B, T] = f(!1);
|
|
148
150
|
v(() => {
|
|
149
|
-
|
|
151
|
+
T(!1);
|
|
150
152
|
}, [b.length]);
|
|
151
|
-
const [y, A] = f(() =>
|
|
153
|
+
const [y, A] = f(() => $?.items ?? null), [E, K] = f(() => $?.total ?? 0), [U, re] = f(!1), [se, ne] = f(null), [ae, ie] = f(null), le = "&kind=html", I = ue(Math.max(L, $?.items.length ?? 0)), H = ue(Math.max(fe, S?.items.length ?? 0)), oe = Le(Se), Ne = Pe();
|
|
152
154
|
v(() => {
|
|
153
|
-
h === "feed" && k(
|
|
155
|
+
h === "feed" && k(R(u));
|
|
154
156
|
}, [u, h]), v(() => {
|
|
155
157
|
if (h !== "feed" || m === null || w) return;
|
|
156
158
|
const e = m.reduce((t, d) => Math.max(t, d.ts), Date.now());
|
|
157
159
|
k(ge(u, e));
|
|
158
160
|
}, [u, w, m, h]), v(() => {
|
|
159
161
|
if (h !== "feed") return;
|
|
160
|
-
const e = () => k(
|
|
162
|
+
const e = () => k(R(u));
|
|
161
163
|
return window.addEventListener("storage", e), window.addEventListener(O, e), () => {
|
|
162
164
|
window.removeEventListener("storage", e), window.removeEventListener(O, e);
|
|
163
165
|
};
|
|
@@ -167,14 +169,14 @@ function ut({
|
|
|
167
169
|
const t = async () => {
|
|
168
170
|
try {
|
|
169
171
|
const a = await C(
|
|
170
|
-
`/api/artifacts?limit=${
|
|
172
|
+
`/api/artifacts?limit=${L}${le}`,
|
|
171
173
|
{ cache: "no-store" }
|
|
172
174
|
);
|
|
173
175
|
if (!e) return;
|
|
174
176
|
const s = Array.isArray(a.artifacts) ? a.artifacts : [], x = a.total ?? s.length;
|
|
175
|
-
A((
|
|
176
|
-
const
|
|
177
|
-
return I.current = Math.max(
|
|
177
|
+
A((ze) => {
|
|
178
|
+
const Re = new Set(s.map((q) => q.id)), Te = (ze ?? []).filter((q) => !Re.has(q.id)), V = [...s, ...Te];
|
|
179
|
+
return I.current = Math.max(L, V.length), N(D, V, x), V;
|
|
178
180
|
}), K(x);
|
|
179
181
|
} catch {
|
|
180
182
|
e && A((a) => a ?? []);
|
|
@@ -194,7 +196,7 @@ function ut({
|
|
|
194
196
|
re(!0);
|
|
195
197
|
try {
|
|
196
198
|
const e = await C(
|
|
197
|
-
`/api/artifacts?limit=${
|
|
199
|
+
`/api/artifacts?limit=${L}&offset=${I.current}${le}`,
|
|
198
200
|
{ cache: "no-store" }
|
|
199
201
|
);
|
|
200
202
|
A((t) => {
|
|
@@ -225,9 +227,9 @@ function ut({
|
|
|
225
227
|
), A((a) => {
|
|
226
228
|
const s = a?.filter((x) => x.id !== e.id) ?? null;
|
|
227
229
|
return s && N(D, s, Math.max(0, E - 1)), s;
|
|
228
|
-
}), K((a) => Math.max(0, a - 1)), I.current = Math.max(0, I.current - 1),
|
|
230
|
+
}), K((a) => Math.max(0, a - 1)), I.current = Math.max(0, I.current - 1), z.success("Artifact deleted");
|
|
229
231
|
} catch (a) {
|
|
230
|
-
|
|
232
|
+
z.error(a instanceof Error ? a.message : "Couldn't delete artifact");
|
|
231
233
|
} finally {
|
|
232
234
|
ie(null);
|
|
233
235
|
}
|
|
@@ -254,9 +256,9 @@ function ut({
|
|
|
254
256
|
refreshEnabled: t.artifact.refresh?.enabled ?? s.refreshEnabled
|
|
255
257
|
} : s) ?? null;
|
|
256
258
|
return a && N(D, a, E), a;
|
|
257
|
-
}),
|
|
259
|
+
}), z.success("Artifact refreshed");
|
|
258
260
|
} catch (t) {
|
|
259
|
-
|
|
261
|
+
z.error(t instanceof Error ? t.message : "Couldn't refresh artifact");
|
|
260
262
|
} finally {
|
|
261
263
|
ne(null);
|
|
262
264
|
}
|
|
@@ -271,12 +273,12 @@ function ut({
|
|
|
271
273
|
}
|
|
272
274
|
P((t) => {
|
|
273
275
|
const d = new Set(e.posts.map((x) => x.id)), a = (t ?? []).filter((x) => !d.has(x.id)), s = [...e.posts, ...a];
|
|
274
|
-
return H.current = Math.max(
|
|
276
|
+
return H.current = Math.max(Ze, s.length), N(Q, s, e.total), s;
|
|
275
277
|
}), W(e.total), te(null);
|
|
276
278
|
});
|
|
277
279
|
}, [h, g]);
|
|
278
280
|
const Ee = async () => {
|
|
279
|
-
if (!
|
|
281
|
+
if (!j) {
|
|
280
282
|
Z(!0);
|
|
281
283
|
try {
|
|
282
284
|
const e = await C(
|
|
@@ -294,30 +296,30 @@ function ut({
|
|
|
294
296
|
}
|
|
295
297
|
}, de = m?.filter(
|
|
296
298
|
(e) => X(w, {
|
|
297
|
-
id:
|
|
299
|
+
id: _(e),
|
|
298
300
|
ts: e.ts
|
|
299
301
|
})
|
|
300
|
-
).length ?? 0, Ie =
|
|
302
|
+
).length ?? 0, Ie = Me(() => {
|
|
301
303
|
if (!m?.length) return [];
|
|
302
304
|
const e = Date.now(), t = [];
|
|
303
305
|
for (const d of m) {
|
|
304
|
-
const a =
|
|
306
|
+
const a = lt(d.ts, e), s = t[t.length - 1];
|
|
305
307
|
s && s.label === a ? s.items.push(d) : t.push({ label: a, items: [d] });
|
|
306
308
|
}
|
|
307
309
|
return t;
|
|
308
310
|
}, [m]), Ce = (e) => {
|
|
309
311
|
X(w, {
|
|
310
|
-
id:
|
|
312
|
+
id: _(e),
|
|
311
313
|
ts: e.ts
|
|
312
314
|
}) && k(
|
|
313
|
-
|
|
315
|
+
nt(u, _(e))
|
|
314
316
|
);
|
|
315
317
|
}, De = async () => {
|
|
316
|
-
if (!
|
|
318
|
+
if (!G) {
|
|
317
319
|
ee(!0);
|
|
318
320
|
try {
|
|
319
321
|
const e = Math.max(Date.now(), ...(m ?? []).map((t) => t.ts));
|
|
320
|
-
k(ge(u, e)), await qe(),
|
|
322
|
+
k(ge(u, e)), await qe(), z.success("Notifications marked read");
|
|
321
323
|
} finally {
|
|
322
324
|
ee(!1);
|
|
323
325
|
}
|
|
@@ -333,15 +335,15 @@ function ut({
|
|
|
333
335
|
// Icon only. It is a rare, undoable housekeeping action — it does not
|
|
334
336
|
// need to be the second-loudest thing on the page.
|
|
335
337
|
/* @__PURE__ */ r(
|
|
336
|
-
|
|
338
|
+
je,
|
|
337
339
|
{
|
|
338
340
|
size: "icon-sm",
|
|
339
341
|
variant: "ghost",
|
|
340
342
|
"aria-label": "Mark all read",
|
|
341
343
|
title: "Mark all read — clears the app icon badge",
|
|
342
|
-
disabled:
|
|
344
|
+
disabled: G,
|
|
343
345
|
onClick: () => void De(),
|
|
344
|
-
children:
|
|
346
|
+
children: G ? /* @__PURE__ */ r(he, { className: "size-4 animate-spin" }) : /* @__PURE__ */ r(Ge, { className: "size-4" })
|
|
345
347
|
}
|
|
346
348
|
)
|
|
347
349
|
) : null
|
|
@@ -360,7 +362,7 @@ function ut({
|
|
|
360
362
|
"button",
|
|
361
363
|
{
|
|
362
364
|
type: "button",
|
|
363
|
-
onClick: () =>
|
|
365
|
+
onClick: () => oe({
|
|
364
366
|
url: e.url,
|
|
365
367
|
kind: e.kind,
|
|
366
368
|
title: e.title,
|
|
@@ -371,7 +373,7 @@ function ut({
|
|
|
371
373
|
}),
|
|
372
374
|
className: "block w-full text-left active:scale-[0.99]",
|
|
373
375
|
children: [
|
|
374
|
-
/* @__PURE__ */ r(
|
|
376
|
+
/* @__PURE__ */ r(at, { path: e.url, cacheKey: e.ts, children: (e.version ?? 1) > 1 ? /* @__PURE__ */ o("span", { className: "absolute left-1.5 top-1.5 flex items-center gap-1 rounded-full bg-emerald-500/15 px-1.5 py-0.5 text-[10px] font-medium text-emerald-600 backdrop-blur dark:text-emerald-400", children: [
|
|
375
377
|
/* @__PURE__ */ r("span", { className: "size-1.5 rounded-full bg-emerald-500" }),
|
|
376
378
|
"live · v",
|
|
377
379
|
e.version
|
|
@@ -392,7 +394,7 @@ function ut({
|
|
|
392
394
|
title: e.sessionTitle || e.project || "Open related session",
|
|
393
395
|
className: "flex w-full items-center gap-1.5 border-t border-border/60 px-2.5 py-2 text-[10px] font-medium text-muted-foreground transition-colors hover:bg-foreground/[0.03] hover:text-foreground",
|
|
394
396
|
children: [
|
|
395
|
-
/* @__PURE__ */ r(
|
|
397
|
+
/* @__PURE__ */ r(tt, { className: "size-3 shrink-0", "aria-hidden": !0 }),
|
|
396
398
|
/* @__PURE__ */ r("span", { className: "min-w-0 flex-1 truncate text-left", children: e.sessionTitle || e.project || "Related session" }),
|
|
397
399
|
/* @__PURE__ */ r(Ye, { className: "size-3 shrink-0", "aria-hidden": !0 })
|
|
398
400
|
]
|
|
@@ -407,7 +409,7 @@ function ut({
|
|
|
407
409
|
disabled: se === e.id,
|
|
408
410
|
"aria-label": `Refresh ${e.title || e.caption || e.name}`,
|
|
409
411
|
className: "flex size-7 items-center justify-center rounded-full text-muted-foreground opacity-100 transition-[color,background-color,transform,opacity] duration-150 hover:bg-foreground/[0.06] hover:text-foreground active:scale-[0.94] disabled:opacity-50 sm:opacity-0 sm:group-hover:opacity-100 sm:focus:opacity-100",
|
|
410
|
-
children: /* @__PURE__ */ r(Be, { className:
|
|
412
|
+
children: /* @__PURE__ */ r(Be, { className: M("size-3.5", se === e.id && "animate-spin") })
|
|
411
413
|
}
|
|
412
414
|
) : null,
|
|
413
415
|
/* @__PURE__ */ r(
|
|
@@ -449,13 +451,13 @@ function ut({
|
|
|
449
451
|
disabled: ye,
|
|
450
452
|
onClick: () => {
|
|
451
453
|
if (!B) {
|
|
452
|
-
|
|
454
|
+
T(!0);
|
|
453
455
|
return;
|
|
454
456
|
}
|
|
455
|
-
|
|
457
|
+
T(!1), ve();
|
|
456
458
|
},
|
|
457
|
-
onBlur: () =>
|
|
458
|
-
className:
|
|
459
|
+
onBlur: () => T(!1),
|
|
460
|
+
className: M(
|
|
459
461
|
"-my-1 rounded-full px-2 py-1 text-[11px] font-medium transition-colors disabled:opacity-50",
|
|
460
462
|
B ? "bg-destructive/10 text-destructive" : "text-muted-foreground hover:text-foreground"
|
|
461
463
|
),
|
|
@@ -470,7 +472,7 @@ function ut({
|
|
|
470
472
|
/* @__PURE__ */ r("h2", { className: "px-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: e.label }),
|
|
471
473
|
/* @__PURE__ */ r("div", { className: "overflow-hidden rounded-2xl border border-border bg-card/40 shadow-sm", children: e.items.map((t) => {
|
|
472
474
|
const d = !!t.sessionId && l.has(t.sessionId), a = X(w, {
|
|
473
|
-
id:
|
|
475
|
+
id: _(t),
|
|
474
476
|
ts: t.ts
|
|
475
477
|
}), s = t.mediaItems.length > 0;
|
|
476
478
|
return /* @__PURE__ */ o("article", { className: "relative border-b border-border/50 last:border-b-0", children: [
|
|
@@ -481,7 +483,7 @@ function ut({
|
|
|
481
483
|
onClick: () => {
|
|
482
484
|
Ce(t), t.sessionId && (c ? c(t) : d && n(t.sessionId));
|
|
483
485
|
},
|
|
484
|
-
className:
|
|
486
|
+
className: M(
|
|
485
487
|
"flex w-full items-start gap-2.5 py-2.5 pl-2.5 text-left transition-colors hover:bg-foreground/[0.02]",
|
|
486
488
|
s ? "pr-[4.75rem]" : "pr-3.5"
|
|
487
489
|
),
|
|
@@ -489,7 +491,7 @@ function ut({
|
|
|
489
491
|
/* @__PURE__ */ r(
|
|
490
492
|
"span",
|
|
491
493
|
{
|
|
492
|
-
className:
|
|
494
|
+
className: M(
|
|
493
495
|
"mt-3 size-1.5 shrink-0 rounded-full",
|
|
494
496
|
a && "bg-primary"
|
|
495
497
|
),
|
|
@@ -534,11 +536,11 @@ function ut({
|
|
|
534
536
|
}
|
|
535
537
|
),
|
|
536
538
|
s ? /* @__PURE__ */ r("div", { className: "absolute right-3.5 top-2.5", children: /* @__PURE__ */ r(
|
|
537
|
-
|
|
539
|
+
it,
|
|
538
540
|
{
|
|
539
541
|
items: t.mediaItems,
|
|
540
542
|
total: t.mediaTotal ?? t.mediaItems.length,
|
|
541
|
-
onExpand:
|
|
543
|
+
onExpand: oe
|
|
542
544
|
}
|
|
543
545
|
) }) : null
|
|
544
546
|
] }, t.id);
|
|
@@ -549,14 +551,14 @@ function ut({
|
|
|
549
551
|
{
|
|
550
552
|
type: "button",
|
|
551
553
|
onClick: () => void Ee(),
|
|
552
|
-
disabled:
|
|
554
|
+
disabled: j,
|
|
553
555
|
className: "w-full rounded-xl border border-border bg-card/40 px-4 py-2.5 text-sm font-medium text-muted-foreground transition-colors hover:border-foreground/20 hover:text-foreground disabled:opacity-60",
|
|
554
|
-
children:
|
|
556
|
+
children: j ? "Loading…" : `Load more · ${F - m.length} left`
|
|
555
557
|
}
|
|
556
558
|
) : null
|
|
557
559
|
] })
|
|
558
560
|
] });
|
|
559
561
|
}
|
|
560
562
|
export {
|
|
561
|
-
|
|
563
|
+
mt as default
|
|
562
564
|
};
|
|
@@ -3,7 +3,7 @@ import { useMemo as We, useState as Ce, useEffect as xe, useRef as Ve } from "re
|
|
|
3
3
|
import { r as He, t as T, o as Ue, u as be, y as L, A as Je, a as Qe } from "./chunk-YOKDWASO-B5AA2F8u.js";
|
|
4
4
|
import { b as Xe, c as Ye, a as Ze, d as Ke } from "./engine-compile-D_stzVMa.js";
|
|
5
5
|
import { cn as je } from "cnfast";
|
|
6
|
-
import {
|
|
6
|
+
import { ab as et, y as tt, ac as nt } from "./embedded-crKLFtim.js";
|
|
7
7
|
const d = (
|
|
8
8
|
/** @type {const} */
|
|
9
9
|
{
|