@mcp-b/react-components 0.71.0 → 0.71.1
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/{AgentComputer-DZCyQkcE.js → AgentComputer-CsWDnHwj.js} +76 -67
- package/dist/{ComputerCalendar-Ci7tLASe.js → ComputerCalendar-Z6k_DVJF.js} +2 -2
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.js +3 -3
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1
- package/dist/components/agents-sdk/ComputerFiles.js +58 -46
- package/dist/components/agents-sdk/ComputerHome.js +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -1
- package/dist/components/agents-sdk/ComputerScreen.js +2 -2
- package/dist/components/agents-sdk/ComputerSettings.js +2 -2
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
- package/dist/{parts-DuT5-rDz.js → parts-BFK5iocu.js} +1 -1
- package/package.json +2 -2
|
@@ -4387,6 +4387,8 @@ const COMPUTER_SPOTLIGHT_SHORTCUT = {
|
|
|
4387
4387
|
aria: "Meta+K Control+K Alt+Space"
|
|
4388
4388
|
};
|
|
4389
4389
|
const NO_RESULTS = async () => [];
|
|
4390
|
+
/** How long a typed query rests before the workspace is searched. */
|
|
4391
|
+
const SEARCH_DEBOUNCE_MS = 150;
|
|
4390
4392
|
/**
|
|
4391
4393
|
* Spotlight, which `AgentComputer` draws in its menu bar: a trigger, the ⌘K,
|
|
4392
4394
|
* ⌃K and ⌥Space shortcuts within this computer, and `CommandPalette` over the
|
|
@@ -4395,7 +4397,7 @@ const NO_RESULTS = async () => [];
|
|
|
4395
4397
|
* blocks only it.
|
|
4396
4398
|
*/
|
|
4397
4399
|
function ComputerSpotlight(t0) {
|
|
4398
|
-
const $ = c(
|
|
4400
|
+
const $ = c(51);
|
|
4399
4401
|
const { extraResults: t1 } = t0;
|
|
4400
4402
|
const extraResults = t1 === void 0 ? NO_RESULTS : t1;
|
|
4401
4403
|
const { openApp } = useAgentComputerActions();
|
|
@@ -4498,44 +4500,51 @@ function ComputerSpotlight(t0) {
|
|
|
4498
4500
|
} else t5 = $[11];
|
|
4499
4501
|
const run = React.useEffectEvent(t5);
|
|
4500
4502
|
let t6;
|
|
4501
|
-
if ($[12] !== open || $[13] !== run) {
|
|
4503
|
+
if ($[12] !== open || $[13] !== query_0 || $[14] !== run) {
|
|
4502
4504
|
t6 = () => {
|
|
4503
4505
|
if (!open) return;
|
|
4504
4506
|
const signal_0 = { stale: false };
|
|
4505
|
-
run(signal_0);
|
|
4507
|
+
const timer = setTimeout(() => run(signal_0), query_0 === "" ? 0 : SEARCH_DEBOUNCE_MS);
|
|
4506
4508
|
return () => {
|
|
4507
4509
|
signal_0.stale = true;
|
|
4510
|
+
clearTimeout(timer);
|
|
4508
4511
|
};
|
|
4509
4512
|
};
|
|
4510
4513
|
$[12] = open;
|
|
4511
|
-
$[13] =
|
|
4512
|
-
$[14] =
|
|
4513
|
-
|
|
4514
|
+
$[13] = query_0;
|
|
4515
|
+
$[14] = run;
|
|
4516
|
+
$[15] = t6;
|
|
4517
|
+
} else t6 = $[15];
|
|
4514
4518
|
let t7;
|
|
4515
|
-
if ($[
|
|
4516
|
-
t7 = [
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4519
|
+
if ($[16] !== open || $[17] !== query_0 || $[18] !== request) {
|
|
4520
|
+
t7 = [
|
|
4521
|
+
open,
|
|
4522
|
+
query_0,
|
|
4523
|
+
request
|
|
4524
|
+
];
|
|
4525
|
+
$[16] = open;
|
|
4526
|
+
$[17] = query_0;
|
|
4527
|
+
$[18] = request;
|
|
4528
|
+
$[19] = t7;
|
|
4529
|
+
} else t7 = $[19];
|
|
4521
4530
|
React.useEffect(t6, t7);
|
|
4522
4531
|
let t8;
|
|
4523
|
-
if ($[
|
|
4532
|
+
if ($[20] !== open) {
|
|
4524
4533
|
t8 = () => open;
|
|
4525
|
-
$[
|
|
4526
|
-
$[
|
|
4527
|
-
} else t8 = $[
|
|
4534
|
+
$[20] = open;
|
|
4535
|
+
$[21] = t8;
|
|
4536
|
+
} else t8 = $[21];
|
|
4528
4537
|
const isOpen = React.useEffectEvent(t8);
|
|
4529
4538
|
let t9;
|
|
4530
|
-
if ($[
|
|
4539
|
+
if ($[22] !== onOpenChange || $[23] !== open) {
|
|
4531
4540
|
t9 = () => onOpenChange(!open);
|
|
4532
|
-
$[
|
|
4533
|
-
$[
|
|
4534
|
-
$[
|
|
4535
|
-
} else t9 = $[
|
|
4541
|
+
$[22] = onOpenChange;
|
|
4542
|
+
$[23] = open;
|
|
4543
|
+
$[24] = t9;
|
|
4544
|
+
} else t9 = $[24];
|
|
4536
4545
|
const toggle = React.useEffectEvent(t9);
|
|
4537
4546
|
let t10;
|
|
4538
|
-
if ($[
|
|
4547
|
+
if ($[25] !== isOpen || $[26] !== toggle) {
|
|
4539
4548
|
t10 = () => {
|
|
4540
4549
|
const computer_0 = trigger.current?.closest("[data-slot=\"agent-computer\"]");
|
|
4541
4550
|
if (!computer_0) return;
|
|
@@ -4555,20 +4564,20 @@ function ComputerSpotlight(t0) {
|
|
|
4555
4564
|
doc.addEventListener("keydown", shortcut);
|
|
4556
4565
|
return () => doc.removeEventListener("keydown", shortcut);
|
|
4557
4566
|
};
|
|
4558
|
-
$[
|
|
4559
|
-
$[
|
|
4560
|
-
$[
|
|
4561
|
-
} else t10 = $[
|
|
4567
|
+
$[25] = isOpen;
|
|
4568
|
+
$[26] = toggle;
|
|
4569
|
+
$[27] = t10;
|
|
4570
|
+
} else t10 = $[27];
|
|
4562
4571
|
let t11;
|
|
4563
|
-
if ($[
|
|
4572
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4564
4573
|
t11 = [];
|
|
4565
|
-
$[
|
|
4566
|
-
} else t11 = $[
|
|
4574
|
+
$[28] = t11;
|
|
4575
|
+
} else t11 = $[28];
|
|
4567
4576
|
React.useEffect(t10, t11);
|
|
4568
4577
|
let t12;
|
|
4569
|
-
if ($[
|
|
4578
|
+
if ($[29] !== apps || $[30] !== openApp || $[31] !== results.commands) {
|
|
4570
4579
|
let t13;
|
|
4571
|
-
if ($[
|
|
4580
|
+
if ($[33] !== openApp) {
|
|
4572
4581
|
t13 = (app) => ({
|
|
4573
4582
|
id: `app:${app.id}`,
|
|
4574
4583
|
label: app.label,
|
|
@@ -4581,29 +4590,29 @@ function ComputerSpotlight(t0) {
|
|
|
4581
4590
|
onSelect: () => void openApp(app.id),
|
|
4582
4591
|
preload: app.preload
|
|
4583
4592
|
});
|
|
4584
|
-
$[
|
|
4585
|
-
$[
|
|
4586
|
-
} else t13 = $[
|
|
4593
|
+
$[33] = openApp;
|
|
4594
|
+
$[34] = t13;
|
|
4595
|
+
} else t13 = $[34];
|
|
4587
4596
|
t12 = [...apps.map(t13), ...results.commands];
|
|
4588
|
-
$[
|
|
4589
|
-
$[
|
|
4590
|
-
$[
|
|
4591
|
-
$[
|
|
4592
|
-
} else t12 = $[
|
|
4597
|
+
$[29] = apps;
|
|
4598
|
+
$[30] = openApp;
|
|
4599
|
+
$[31] = results.commands;
|
|
4600
|
+
$[32] = t12;
|
|
4601
|
+
} else t12 = $[32];
|
|
4593
4602
|
const commands_0 = t12;
|
|
4594
4603
|
let t13;
|
|
4595
|
-
if ($[
|
|
4604
|
+
if ($[35] !== onOpenChange) {
|
|
4596
4605
|
t13 = () => onOpenChange(true);
|
|
4597
|
-
$[
|
|
4598
|
-
$[
|
|
4599
|
-
} else t13 = $[
|
|
4606
|
+
$[35] = onOpenChange;
|
|
4607
|
+
$[36] = t13;
|
|
4608
|
+
} else t13 = $[36];
|
|
4600
4609
|
let t14;
|
|
4601
|
-
if ($[
|
|
4610
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4602
4611
|
t14 = /* @__PURE__ */ jsx(SearchIcon, {});
|
|
4603
|
-
$[
|
|
4604
|
-
} else t14 = $[
|
|
4612
|
+
$[37] = t14;
|
|
4613
|
+
} else t14 = $[37];
|
|
4605
4614
|
let t15;
|
|
4606
|
-
if ($[
|
|
4615
|
+
if ($[38] !== t13) {
|
|
4607
4616
|
t15 = /* @__PURE__ */ jsx(IconButton, {
|
|
4608
4617
|
ref: trigger,
|
|
4609
4618
|
label: "Search workspace",
|
|
@@ -4615,11 +4624,11 @@ function ComputerSpotlight(t0) {
|
|
|
4615
4624
|
onClick: t13,
|
|
4616
4625
|
children: t14
|
|
4617
4626
|
});
|
|
4618
|
-
$[
|
|
4619
|
-
$[
|
|
4620
|
-
} else t15 = $[
|
|
4627
|
+
$[38] = t13;
|
|
4628
|
+
$[39] = t15;
|
|
4629
|
+
} else t15 = $[39];
|
|
4621
4630
|
let t16;
|
|
4622
|
-
if ($[
|
|
4631
|
+
if ($[40] !== status) {
|
|
4623
4632
|
t16 = status === "error" ? /* @__PURE__ */ jsxs("p", {
|
|
4624
4633
|
role: "status",
|
|
4625
4634
|
children: [
|
|
@@ -4633,11 +4642,11 @@ function ComputerSpotlight(t0) {
|
|
|
4633
4642
|
})
|
|
4634
4643
|
]
|
|
4635
4644
|
}) : status === "loading" ? /* @__PURE__ */ jsx("p", { children: "Searching the workspace…" }) : null;
|
|
4636
|
-
$[
|
|
4637
|
-
$[
|
|
4638
|
-
} else t16 = $[
|
|
4645
|
+
$[40] = status;
|
|
4646
|
+
$[41] = t16;
|
|
4647
|
+
} else t16 = $[41];
|
|
4639
4648
|
let t17;
|
|
4640
|
-
if ($[
|
|
4649
|
+
if ($[42] !== commands_0 || $[43] !== container || $[44] !== onOpenChange || $[45] !== open || $[46] !== t16) {
|
|
4641
4650
|
t17 = /* @__PURE__ */ jsx(CommandPalette, {
|
|
4642
4651
|
commands: commands_0,
|
|
4643
4652
|
open,
|
|
@@ -4646,20 +4655,20 @@ function ComputerSpotlight(t0) {
|
|
|
4646
4655
|
container,
|
|
4647
4656
|
children: t16
|
|
4648
4657
|
});
|
|
4649
|
-
$[
|
|
4650
|
-
$[
|
|
4651
|
-
$[
|
|
4652
|
-
$[
|
|
4653
|
-
$[
|
|
4654
|
-
$[
|
|
4655
|
-
} else t17 = $[
|
|
4658
|
+
$[42] = commands_0;
|
|
4659
|
+
$[43] = container;
|
|
4660
|
+
$[44] = onOpenChange;
|
|
4661
|
+
$[45] = open;
|
|
4662
|
+
$[46] = t16;
|
|
4663
|
+
$[47] = t17;
|
|
4664
|
+
} else t17 = $[47];
|
|
4656
4665
|
let t18;
|
|
4657
|
-
if ($[
|
|
4666
|
+
if ($[48] !== t15 || $[49] !== t17) {
|
|
4658
4667
|
t18 = /* @__PURE__ */ jsxs(Fragment, { children: [t15, t17] });
|
|
4659
|
-
$[
|
|
4660
|
-
$[
|
|
4661
|
-
$[
|
|
4662
|
-
} else t18 = $[
|
|
4668
|
+
$[48] = t15;
|
|
4669
|
+
$[49] = t17;
|
|
4670
|
+
$[50] = t18;
|
|
4671
|
+
} else t18 = $[50];
|
|
4663
4672
|
return t18;
|
|
4664
4673
|
}
|
|
4665
4674
|
function _temp4$4(count) {
|
|
@@ -2,7 +2,7 @@ import { Z as PlusIcon, g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon
|
|
|
2
2
|
import { Checkbox } from "./components/foundations/Checkbox.js";
|
|
3
3
|
import { Button } from "./components/foundations/Button.js";
|
|
4
4
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
5
|
-
import { n as useAgentComputerActions } from "./AgentComputer-
|
|
5
|
+
import { n as useAgentComputerActions } from "./AgentComputer-CsWDnHwj.js";
|
|
6
6
|
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
7
7
|
import { COMPUTER_APP_IDS } from "./components/agents-sdk/ComputerAppIds.js";
|
|
8
8
|
import { Popover } from "./components/foundations/Popover.js";
|
|
@@ -14,7 +14,7 @@ import { LinkButton } from "./components/foundations/LinkButton.js";
|
|
|
14
14
|
import { DescriptionList } from "./components/foundations/DescriptionList.js";
|
|
15
15
|
import { SearchField } from "./components/foundations/SearchField.js";
|
|
16
16
|
import { ResponsiveSidebarShell } from "./components/general-purpose/ResponsiveSidebarShell.js";
|
|
17
|
-
import { t as computerAppParts } from "./parts-
|
|
17
|
+
import { t as computerAppParts } from "./parts-BFK5iocu.js";
|
|
18
18
|
import { c } from "react/compiler-runtime";
|
|
19
19
|
import * as React from "react";
|
|
20
20
|
import { createContext, use, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-
|
|
1
|
+
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-CsWDnHwj.js";
|
|
2
2
|
export { AgentComputer, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
|
|
@@ -5,7 +5,7 @@ import { IconButton } from "../foundations/IconButton.js";
|
|
|
5
5
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
6
6
|
import { Tabs } from "../foundations/Tabs.js";
|
|
7
7
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
8
|
-
import { p as useMinuteClock } from "../../AgentComputer-
|
|
8
|
+
import { p as useMinuteClock } from "../../AgentComputer-CsWDnHwj.js";
|
|
9
9
|
import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
|
|
10
10
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
11
11
|
import { ScreenStack } from "../general-purpose/ScreenStack.js";
|
|
@@ -15,8 +15,8 @@ import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
|
15
15
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
16
16
|
import { r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
|
|
17
17
|
import { ResponsiveSidebarAppBar, ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
18
|
-
import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-
|
|
19
|
-
import { n as computerAppTile, t as computerAppParts } from "../../parts-
|
|
18
|
+
import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-Z6k_DVJF.js";
|
|
19
|
+
import { n as computerAppTile, t as computerAppParts } from "../../parts-BFK5iocu.js";
|
|
20
20
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
21
21
|
import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
|
|
22
22
|
import { WorkspaceAutomationsPanel } from "./WorkspaceAutomation.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ComputerCalendar } from "../../ComputerCalendar-
|
|
1
|
+
import { t as ComputerCalendar } from "../../ComputerCalendar-Z6k_DVJF.js";
|
|
2
2
|
export { ComputerCalendar };
|
|
@@ -11,14 +11,14 @@ import { a as workspaceDirname, i as workspaceBasename } from "../../workspace-p
|
|
|
11
11
|
import { useWorkspace, workspaceDirectoryQueryOptions, workspaceInfoQueryKey, workspaceInfoQueryOptions } from "./Workspace.js";
|
|
12
12
|
import { _ as workspaceFileShortcut, a as saveWorkspaceFileAs, d as isHiddenWorkspaceEntry, f as isInWorkspaceTrash, g as workspaceFileCommandForKey, h as useWorkspaceFileCommands, p as isWithin, r as downloadWorkspaceFile, u as WORKSPACE_TRASH } from "../../WorkspaceFileTransfer-D2cOoVyO.js";
|
|
13
13
|
import { r as useWorkspaceDragAndDrop } from "../../workspace-drag-BNhZIN8F.js";
|
|
14
|
-
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-
|
|
14
|
+
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-CsWDnHwj.js";
|
|
15
15
|
import { f as useAppHosts, l as PresentationContext, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
|
|
16
16
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
17
17
|
import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
|
|
18
18
|
import { Menubar } from "../foundations/Menubar.js";
|
|
19
19
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
20
20
|
import { SearchField } from "../foundations/SearchField.js";
|
|
21
|
-
import { n as computerAppTile } from "../../parts-
|
|
21
|
+
import { n as computerAppTile } from "../../parts-BFK5iocu.js";
|
|
22
22
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
23
23
|
import { a as hasModifier } from "../../ComputerFileThumbnail-CXHy127c.js";
|
|
24
24
|
import { i as WorkspaceThumbnailContext } from "../../workspace-quick-look-8cbGu1Xf.js";
|
|
@@ -52,11 +52,12 @@ function finderPlaces(locations) {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* The home volume's source, with Recents and a search read from the host.
|
|
55
|
-
* A Proxy, so a class-backed source keeps its own `this`.
|
|
55
|
+
* A Proxy, so a class-backed source keeps its own `this`. Finder and Spotlight
|
|
56
|
+
* both list through it, so one cached query answers them both.
|
|
56
57
|
*/
|
|
57
58
|
function querySource(source, recent, search) {
|
|
58
59
|
const readDir = async (path = "/", options) => {
|
|
59
|
-
const rows = path === "/.Recents" ? await recent(QUERY_LIMIT) : path.startsWith(
|
|
60
|
+
const rows = path === "/.Recents" ? await recent(QUERY_LIMIT) : path.startsWith("/.Search/") ? await search(decodeURIComponent(path.slice(9)), QUERY_LIMIT) : null;
|
|
60
61
|
if (!rows) return source.readDir(path, options);
|
|
61
62
|
const offset = options?.offset ?? 0;
|
|
62
63
|
return rows.slice(offset, offset + (options?.limit ?? Infinity));
|
|
@@ -320,7 +321,7 @@ function FinderViewControls(t0) {
|
|
|
320
321
|
} else t8 = $[12];
|
|
321
322
|
let t9;
|
|
322
323
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
323
|
-
t9 = SORT_KEYS.map(_temp2$
|
|
324
|
+
t9 = SORT_KEYS.map(_temp2$2);
|
|
324
325
|
$[13] = t9;
|
|
325
326
|
} else t9 = $[13];
|
|
326
327
|
let t10;
|
|
@@ -390,7 +391,7 @@ function FinderViewControls(t0) {
|
|
|
390
391
|
} else t17 = $[30];
|
|
391
392
|
return t17;
|
|
392
393
|
}
|
|
393
|
-
function _temp2$
|
|
394
|
+
function _temp2$2(t0) {
|
|
394
395
|
const [by, label] = t0;
|
|
395
396
|
return /* @__PURE__ */ jsxs(Menu.RadioItem, {
|
|
396
397
|
value: by,
|
|
@@ -624,7 +625,7 @@ function FinderRail(t0) {
|
|
|
624
625
|
const group = phone ? "inset-group" : void 0;
|
|
625
626
|
let t1;
|
|
626
627
|
if ($[0] !== phone || $[1] !== places) {
|
|
627
|
-
t1 = phone ? places.filter(_temp3$
|
|
628
|
+
t1 = phone ? places.filter(_temp3$2) : places;
|
|
628
629
|
$[0] = phone;
|
|
629
630
|
$[1] = places;
|
|
630
631
|
$[2] = t1;
|
|
@@ -769,7 +770,7 @@ function _temp5(event) {
|
|
|
769
770
|
function _temp4(project) {
|
|
770
771
|
return workspaceDirname(project.path);
|
|
771
772
|
}
|
|
772
|
-
function _temp3$
|
|
773
|
+
function _temp3$2(place) {
|
|
773
774
|
return place.path !== "/";
|
|
774
775
|
}
|
|
775
776
|
/** One sidebar location: it opens on a press and, as in Finder, takes a drop and springs open under a held drag. */
|
|
@@ -2210,7 +2211,7 @@ function useComputerFiles(t0) {
|
|
|
2210
2211
|
const getInfo = t6;
|
|
2211
2212
|
let t7;
|
|
2212
2213
|
if ($[12] !== locations) {
|
|
2213
|
-
t7 = locations.filter(_temp2).map(_temp3);
|
|
2214
|
+
t7 = locations.filter(_temp2$1).map(_temp3$1);
|
|
2214
2215
|
$[12] = locations;
|
|
2215
2216
|
$[13] = t7;
|
|
2216
2217
|
} else t7 = $[13];
|
|
@@ -2250,10 +2251,10 @@ function useComputerFiles(t0) {
|
|
|
2250
2251
|
} else t10 = $[24];
|
|
2251
2252
|
return t10;
|
|
2252
2253
|
}
|
|
2253
|
-
function _temp3(location_0) {
|
|
2254
|
+
function _temp3$1(location_0) {
|
|
2254
2255
|
return location_0.path;
|
|
2255
2256
|
}
|
|
2256
|
-
function _temp2(location) {
|
|
2257
|
+
function _temp2$1(location) {
|
|
2257
2258
|
return location.readOnly;
|
|
2258
2259
|
}
|
|
2259
2260
|
function _temp$1(t0) {
|
|
@@ -2284,7 +2285,7 @@ function folderTitle(host, home, path) {
|
|
|
2284
2285
|
* desktop and every Files window.
|
|
2285
2286
|
*/
|
|
2286
2287
|
function Host(t0) {
|
|
2287
|
-
const $ = c(
|
|
2288
|
+
const $ = c(53);
|
|
2288
2289
|
const { value, children } = t0;
|
|
2289
2290
|
const { computer, workspace } = useComputerHost("ComputerFiles.Host");
|
|
2290
2291
|
const volume = workspace.volume;
|
|
@@ -2420,20 +2421,25 @@ function Host(t0) {
|
|
|
2420
2421
|
$[30] = t12;
|
|
2421
2422
|
} else t12 = $[30];
|
|
2422
2423
|
let t13;
|
|
2423
|
-
if ($[31] !== command) {
|
|
2424
|
+
if ($[31] !== command || $[32] !== queryClient || $[33] !== volume) {
|
|
2424
2425
|
t13 = async (query) => {
|
|
2425
|
-
const
|
|
2426
|
-
const
|
|
2426
|
+
const { source: source_1, sourceKey: sourceKey_1 } = volume;
|
|
2427
|
+
const { recent: recentFn, search: searchFn } = latest.current;
|
|
2428
|
+
const listing = (root) => queryClient.fetchQuery(workspaceDirectoryQueryOptions(querySource(source_1, recentFn, searchFn), sourceKey_1, root, root));
|
|
2429
|
+
const [recent, found] = await Promise.all([listing(RECENTS).then(_temp), listing(`${SEARCH}${encodeURIComponent(query)}`).then(_temp2)]);
|
|
2430
|
+
const paths_0 = new Set(recent.map(_temp3));
|
|
2427
2431
|
return {
|
|
2428
2432
|
recent: recent.map((entry_2) => command(entry_2, "Recent")),
|
|
2429
2433
|
found: found.filter((entry_3) => !paths_0.has(entry_3.path)).map((entry_4) => command(entry_4, entry_4.type === "directory" ? "Folders" : "Files"))
|
|
2430
2434
|
};
|
|
2431
2435
|
};
|
|
2432
2436
|
$[31] = command;
|
|
2433
|
-
$[32] =
|
|
2434
|
-
|
|
2437
|
+
$[32] = queryClient;
|
|
2438
|
+
$[33] = volume;
|
|
2439
|
+
$[34] = t13;
|
|
2440
|
+
} else t13 = $[34];
|
|
2435
2441
|
let t14;
|
|
2436
|
-
if ($[
|
|
2442
|
+
if ($[35] !== dialogs || $[36] !== open || $[37] !== t10 || $[38] !== t12 || $[39] !== t13) {
|
|
2437
2443
|
t14 = {
|
|
2438
2444
|
apps: t10,
|
|
2439
2445
|
desktop: t11,
|
|
@@ -2442,61 +2448,67 @@ function Host(t0) {
|
|
|
2442
2448
|
open,
|
|
2443
2449
|
spotlight: t13
|
|
2444
2450
|
};
|
|
2445
|
-
$[
|
|
2446
|
-
$[
|
|
2447
|
-
$[
|
|
2448
|
-
$[
|
|
2449
|
-
$[
|
|
2450
|
-
$[
|
|
2451
|
-
} else t14 = $[
|
|
2451
|
+
$[35] = dialogs;
|
|
2452
|
+
$[36] = open;
|
|
2453
|
+
$[37] = t10;
|
|
2454
|
+
$[38] = t12;
|
|
2455
|
+
$[39] = t13;
|
|
2456
|
+
$[40] = t14;
|
|
2457
|
+
} else t14 = $[40];
|
|
2452
2458
|
const contribution = t14;
|
|
2453
2459
|
let t15;
|
|
2454
|
-
if ($[
|
|
2460
|
+
if ($[41] !== files || $[42] !== value) {
|
|
2455
2461
|
t15 = {
|
|
2456
2462
|
host: value,
|
|
2457
2463
|
files
|
|
2458
2464
|
};
|
|
2459
|
-
$[
|
|
2460
|
-
$[
|
|
2461
|
-
$[
|
|
2462
|
-
} else t15 = $[
|
|
2465
|
+
$[41] = files;
|
|
2466
|
+
$[42] = value;
|
|
2467
|
+
$[43] = t15;
|
|
2468
|
+
} else t15 = $[43];
|
|
2463
2469
|
const state = t15;
|
|
2464
2470
|
const t16 = useAppHosts("files", contribution);
|
|
2465
2471
|
let t17;
|
|
2466
|
-
if ($[
|
|
2472
|
+
if ($[44] !== children || $[45] !== t16) {
|
|
2467
2473
|
t17 = /* @__PURE__ */ jsx(AppHostsContext, {
|
|
2468
2474
|
value: t16,
|
|
2469
2475
|
children
|
|
2470
2476
|
});
|
|
2471
|
-
$[
|
|
2472
|
-
$[
|
|
2473
|
-
$[
|
|
2474
|
-
} else t17 = $[
|
|
2477
|
+
$[44] = children;
|
|
2478
|
+
$[45] = t16;
|
|
2479
|
+
$[46] = t17;
|
|
2480
|
+
} else t17 = $[46];
|
|
2475
2481
|
let t18;
|
|
2476
|
-
if ($[
|
|
2482
|
+
if ($[47] !== infoPanels || $[48] !== t17) {
|
|
2477
2483
|
t18 = /* @__PURE__ */ jsx(InfoPanels, {
|
|
2478
2484
|
value: infoPanels,
|
|
2479
2485
|
children: t17
|
|
2480
2486
|
});
|
|
2481
|
-
$[
|
|
2482
|
-
$[
|
|
2483
|
-
$[
|
|
2484
|
-
} else t18 = $[
|
|
2487
|
+
$[47] = infoPanels;
|
|
2488
|
+
$[48] = t17;
|
|
2489
|
+
$[49] = t18;
|
|
2490
|
+
} else t18 = $[49];
|
|
2485
2491
|
let t19;
|
|
2486
|
-
if ($[
|
|
2492
|
+
if ($[50] !== state || $[51] !== t18) {
|
|
2487
2493
|
t19 = /* @__PURE__ */ jsx(FilesContext, {
|
|
2488
2494
|
value: state,
|
|
2489
2495
|
children: t18
|
|
2490
2496
|
});
|
|
2491
|
-
$[
|
|
2492
|
-
$[
|
|
2493
|
-
$[
|
|
2494
|
-
} else t19 = $[
|
|
2497
|
+
$[50] = state;
|
|
2498
|
+
$[51] = t18;
|
|
2499
|
+
$[52] = t19;
|
|
2500
|
+
} else t19 = $[52];
|
|
2495
2501
|
return t19;
|
|
2496
2502
|
}
|
|
2497
|
-
function
|
|
2503
|
+
function _temp3(entry_1) {
|
|
2498
2504
|
return entry_1.path;
|
|
2499
2505
|
}
|
|
2506
|
+
function _temp2(rows_0) {
|
|
2507
|
+
return rows_0.slice(0, SPOTLIGHT_FOUND);
|
|
2508
|
+
}
|
|
2509
|
+
function _temp(rows) {
|
|
2510
|
+
return rows.slice(0, SPOTLIGHT_RECENT);
|
|
2511
|
+
}
|
|
2500
2512
|
/** The workspace's root on the desktop, behind the windows. */
|
|
2501
2513
|
function FilesDesktop() {
|
|
2502
2514
|
const $ = c(27);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { s as ComputerHome } from "../../AgentComputer-
|
|
1
|
+
import { s as ComputerHome } from "../../AgentComputer-CsWDnHwj.js";
|
|
2
2
|
export { ComputerHome };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as ComputerClock, f as ComputerNotifications, u as ComputerAppearanceMenu } from "../../AgentComputer-
|
|
1
|
+
import { d as ComputerClock, f as ComputerNotifications, u as ComputerAppearanceMenu } from "../../AgentComputer-CsWDnHwj.js";
|
|
2
2
|
export { ComputerAppearanceMenu, ComputerClock, ComputerNotifications };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { V as MessageSquareIcon, W as MonitorIcon, _ as ChromeIcon, i as ArrowRightIcon, m as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
-
import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-
|
|
4
|
+
import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-CsWDnHwj.js";
|
|
5
5
|
import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
|
|
6
6
|
import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
|
|
7
7
|
import { Menubar } from "../foundations/Menubar.js";
|
|
@@ -9,7 +9,7 @@ import { FormattedDate } from "../foundations/FormattedDate.js";
|
|
|
9
9
|
import { AgentScreenSwitcher } from "./AgentScreenSwitcher.js";
|
|
10
10
|
import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
|
|
11
11
|
import { BrowserProfileMenu, BrowserRunPanel, BrowserTabStrip } from "./BrowserRunPanel.js";
|
|
12
|
-
import { n as computerAppTile } from "../../parts-
|
|
12
|
+
import { n as computerAppTile } from "../../parts-BFK5iocu.js";
|
|
13
13
|
import { c } from "react/compiler-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { desktopArtwork } from "../../utils/desktop-artwork.js";
|
|
2
2
|
import { A as GlobeIcon, F as LinkIcon, L as LockIcon, N as KeyboardIcon, R as MailIcon, V as MessageSquareIcon, W as MonitorIcon, _ as ChromeIcon, ft as UserIcon, j as GridIcon, ut as TerminalIcon } from "../../icons-nLTnB9kd.js";
|
|
3
3
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
4
|
-
import { a as useAgentComputerWindow, c as COMPUTER_SPOTLIGHT_SHORTCUT, m as chordLabel } from "../../AgentComputer-
|
|
4
|
+
import { a as useAgentComputerWindow, c as COMPUTER_SPOTLIGHT_SHORTCUT, m as chordLabel } from "../../AgentComputer-CsWDnHwj.js";
|
|
5
5
|
import { f as useAppHosts, g as usePresentation, h as useComputerSlice, l as PresentationContext, m as useComputerHost, n as AppHostsContext, r as AppearanceContext } from "../../context-BWJpR084.js";
|
|
6
6
|
import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
|
|
7
7
|
import { a as EmployeeWorkspaceRows, c as SettingsToolbar, i as DockSettings, o as SettingsLayout, s as SettingsRow } from "../../ComputerPresentation-BEQKYAjc.js";
|
|
8
8
|
import { ThemeModeControl } from "../general-purpose/ThemeModeControl.js";
|
|
9
|
-
import { n as computerAppTile } from "../../parts-
|
|
9
|
+
import { n as computerAppTile } from "../../parts-BFK5iocu.js";
|
|
10
10
|
import { Switch } from "../foundations/Switch.js";
|
|
11
11
|
import { WallpaperPicker } from "../general-purpose/WallpaperPicker.js";
|
|
12
12
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as COMPUTER_SPOTLIGHT_SHORTCUT, l as ComputerSpotlight } from "../../AgentComputer-
|
|
1
|
+
import { c as COMPUTER_SPOTLIGHT_SHORTCUT, l as ComputerSpotlight } from "../../AgentComputer-CsWDnHwj.js";
|
|
2
2
|
export { COMPUTER_SPOTLIGHT_SHORTCUT, ComputerSpotlight };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-
|
|
1
|
+
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-CsWDnHwj.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.1",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"streamdown": "^2.7.0",
|
|
56
56
|
"unist-util-visit": "^5.1.0",
|
|
57
57
|
"yet-another-react-lightbox": "^3.32.2",
|
|
58
|
-
"@mcp-b/design-tokens": "0.71.
|
|
58
|
+
"@mcp-b/design-tokens": "0.71.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@ai-sdk/react": "^4.0.136",
|