@mcp-b/react-components 0.70.0 → 0.71.0
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-CpS9R2KG.d.ts +305 -0
- package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
- package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
- package/dist/ComputerCalendar-Ci7tLASe.js +1360 -0
- package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
- package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
- package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
- package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
- package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
- package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
- package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
- package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
- package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
- package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
- package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
- package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
- package/dist/components/agents-sdk/ComputerFiles.js +365 -89
- package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
- package/dist/components/agents-sdk/ComputerHome.js +1 -89
- package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
- package/dist/components/agents-sdk/ComputerHost.js +97 -0
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
- package/dist/components/agents-sdk/ComputerScreen.js +109 -50
- package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
- package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
- package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
- package/dist/components/agents-sdk/ComputerViewer.js +176 -187
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
- package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
- package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
- package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
- package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/extension/FirstRunSetup.js +2 -2
- package/dist/components/foundations/ThemeProvider.d.ts +2 -0
- package/dist/components/foundations/ThemeProvider.js +2 -1
- package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/context-BWJpR084.js +94 -0
- package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
- package/dist/styles/agent-computer.css +16 -0
- package/dist/styles/computer-files.css +5 -0
- package/dist/styles/computer-notifications.css +1 -0
- package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
- package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
- package/package.json +2 -2
- package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
- package/dist/automations-host-DPORjdc7.js +0 -17
- package/dist/context-Ddsp8HgD.js +0 -43
- package/dist/minute-clock-CXpRGCMF.js +0 -35
- package/dist/{Context-DQDumCV8.js → Context-CYUxZrwW.js} +1 -1
- package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
- package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
package/dist/context-Ddsp8HgD.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
//#region src/components/_internal/agent-computer/context.ts
|
|
4
|
-
/** The computer's controller: its state and every transition between states. */
|
|
5
|
-
const ComputerContext = React.createContext(null);
|
|
6
|
-
function useComputer() {
|
|
7
|
-
return React.use(ComputerContext);
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A slice of the computer's state. `select` must return a primitive or a value
|
|
11
|
-
* the controller caches, so an unrelated change leaves this component alone.
|
|
12
|
-
*/
|
|
13
|
-
function useComputerSlice(select) {
|
|
14
|
-
const $ = c(3);
|
|
15
|
-
const computer = useComputer();
|
|
16
|
-
let t0;
|
|
17
|
-
if ($[0] !== computer || $[1] !== select) {
|
|
18
|
-
t0 = () => select(computer);
|
|
19
|
-
$[0] = computer;
|
|
20
|
-
$[1] = select;
|
|
21
|
-
$[2] = t0;
|
|
22
|
-
} else t0 = $[2];
|
|
23
|
-
return React.useSyncExternalStore(computer.subscribe, t0);
|
|
24
|
-
}
|
|
25
|
-
/** The window an app part is rendered in. Memoized per window. */
|
|
26
|
-
const WindowContext = React.createContext(null);
|
|
27
|
-
/**
|
|
28
|
-
* Whether that window is key, apart from the window itself: focus moves on
|
|
29
|
-
* every window action, and only the parts that draw it should render again.
|
|
30
|
-
*/
|
|
31
|
-
const WindowActiveContext = React.createContext(null);
|
|
32
|
-
/** The computer's actions: one object for the computer's lifetime. */
|
|
33
|
-
const ActionsContext = React.createContext(null);
|
|
34
|
-
/** Where a running app registers its keyboard commands and quit guard. */
|
|
35
|
-
const HandlersContext = React.createContext(null);
|
|
36
|
-
/**
|
|
37
|
-
* The element an overlay inside the computer portals into, so it stays on the
|
|
38
|
-
* computer's screen above its windows: null until the computer has mounted
|
|
39
|
-
* it, which a Base UI portal waits for, and undefined outside a computer.
|
|
40
|
-
*/
|
|
41
|
-
const PortalContext = React.createContext(void 0);
|
|
42
|
-
//#endregion
|
|
43
|
-
export { WindowActiveContext as a, useComputerSlice as c, PortalContext as i, ComputerContext as n, WindowContext as o, HandlersContext as r, useComputer as s, ActionsContext as t };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
//#region src/components/_internal/computer-apps/minute-clock.ts
|
|
4
|
-
/** The instant `now` reads, read again on each minute boundary. */
|
|
5
|
-
function useMinuteClock(now) {
|
|
6
|
-
const $ = c(3);
|
|
7
|
-
const [instant, setInstant] = useState(now);
|
|
8
|
-
let t0;
|
|
9
|
-
let t1;
|
|
10
|
-
if ($[0] !== now) {
|
|
11
|
-
t0 = () => {
|
|
12
|
-
let timer;
|
|
13
|
-
const schedule = (current) => {
|
|
14
|
-
timer = setTimeout(() => {
|
|
15
|
-
const next = now();
|
|
16
|
-
setInstant(next);
|
|
17
|
-
schedule(next);
|
|
18
|
-
}, 6e4 - current % 6e4);
|
|
19
|
-
};
|
|
20
|
-
schedule(now());
|
|
21
|
-
return () => clearTimeout(timer);
|
|
22
|
-
};
|
|
23
|
-
t1 = [now];
|
|
24
|
-
$[0] = now;
|
|
25
|
-
$[1] = t0;
|
|
26
|
-
$[2] = t1;
|
|
27
|
-
} else {
|
|
28
|
-
t0 = $[1];
|
|
29
|
-
t1 = $[2];
|
|
30
|
-
}
|
|
31
|
-
useEffect(t0, t1);
|
|
32
|
-
return instant;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { useMinuteClock as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
2
|
import { n as clamp } from "./format-DL7f2rqp.js";
|
|
3
|
-
import { Separator } from "./components/foundations/Separator.js";
|
|
4
3
|
import { Popover } from "./components/foundations/Popover.js";
|
|
4
|
+
import { Separator } from "./components/foundations/Separator.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -5,14 +5,14 @@ import { Button } from "./components/foundations/Button.js";
|
|
|
5
5
|
import { Collapsible } from "./components/foundations/Collapsible.js";
|
|
6
6
|
import { Tooltip } from "./components/foundations/Tooltip.js";
|
|
7
7
|
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
8
|
+
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
8
9
|
import { EmptyState } from "./components/foundations/EmptyState.js";
|
|
9
10
|
import { Favicon } from "./components/foundations/Favicon.js";
|
|
10
11
|
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
|
|
11
12
|
import { Avatar } from "./components/foundations/Avatar.js";
|
|
12
13
|
import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
|
|
13
|
-
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
14
|
-
import { LinkButton } from "./components/foundations/LinkButton.js";
|
|
15
14
|
import { formatThinkScheduleRepeat } from "./components/agents-sdk/ThinkSchedule.js";
|
|
15
|
+
import { LinkButton } from "./components/foundations/LinkButton.js";
|
|
16
16
|
import { c } from "react/compiler-runtime";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
2
|
import { a as workspaceDirname, n as isWorkspacePathWithinRoot, t as canonicalizeAbsoluteWorkspacePath } from "./workspace-path-TZggP-u4.js";
|
|
3
|
-
import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
|
|
4
3
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
4
|
+
import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|