@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
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import "./Workspace-mZddFyvP.js";
|
|
2
|
+
import { i as WorkspaceDragSource } from "./WorkspaceFileTransfer-D--dVla2.js";
|
|
3
|
+
import { n as CommandPaletteCommand } from "./CommandPalette-DDctKdpC.js";
|
|
4
|
+
import { r as ComputerNotification } from "./ComputerNotifications-q7eeELZ8.js";
|
|
5
|
+
import { t as ComputerWallpaper } from "./ComputerCustomWallpaper-D4lgwj2k.js";
|
|
6
|
+
import { i as WorkspaceBrowserSort } from "./WorkspaceBrowser-CNVAKXXZ.js";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { ReactNode } from "react";
|
|
9
|
+
//#region src/components/_internal/computer-apps/settings.d.ts
|
|
10
|
+
/** The Dock's arrangement: app order, and the apps it leaves out. */
|
|
11
|
+
interface DockArrangement {
|
|
12
|
+
order: readonly string[];
|
|
13
|
+
hidden: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/agents-sdk/ComputerPresentation.d.ts
|
|
17
|
+
/** How a Finder window shows one folder, as macOS keeps per folder. */
|
|
18
|
+
interface ComputerFolderView {
|
|
19
|
+
layout: "list" | "grid";
|
|
20
|
+
sort: WorkspaceBrowserSort;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Each arranged folder's view, by its path in the computer's workspace. A
|
|
24
|
+
* folder never arranged opens as its nearest arranged ancestor does. The
|
|
25
|
+
* computer keeps the last {@link MAX_FOLDER_VIEWS} arranged.
|
|
26
|
+
*/
|
|
27
|
+
type ComputerFolderViews = Readonly<Record<string, ComputerFolderView>>;
|
|
28
|
+
/**
|
|
29
|
+
* How the computer looks, which a host saves and restores: its windows, its
|
|
30
|
+
* background, its Dock and each folder's view. Presentation only — no app
|
|
31
|
+
* data and nothing the workspace already keeps.
|
|
32
|
+
*/
|
|
33
|
+
interface ComputerPresentation {
|
|
34
|
+
/** The windows, as `AgentComputer` last reported them; null starts on Home. */
|
|
35
|
+
layout: AgentComputerLayout | null;
|
|
36
|
+
wallpaper: ComputerWallpaper;
|
|
37
|
+
dock: DockArrangement;
|
|
38
|
+
folders: ComputerFolderViews;
|
|
39
|
+
}
|
|
40
|
+
/** A computer nobody has arranged: Home, the Sigvelo background, the default Dock. */
|
|
41
|
+
declare const DEFAULT_COMPUTER_PRESENTATION: ComputerPresentation;
|
|
42
|
+
/** The most folder views a computer keeps; older ones fall back to their ancestors'. */
|
|
43
|
+
declare const MAX_FOLDER_VIEWS = 200;
|
|
44
|
+
/**
|
|
45
|
+
* A saved presentation, rebuilt part by part from storage: a part that is not
|
|
46
|
+
* one falls back to its default alone, so a bad background never costs the
|
|
47
|
+
* windows.
|
|
48
|
+
*/
|
|
49
|
+
declare function readComputerPresentation(value: unknown): ComputerPresentation;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/agents-sdk/AgentComputer.d.ts
|
|
52
|
+
/** The window an app part is rendered in, from {@link useAgentComputerWindow}. */
|
|
53
|
+
interface AgentComputerWindow {
|
|
54
|
+
/** The app's id. */
|
|
55
|
+
id: string;
|
|
56
|
+
/** The computer is a phone (48rem or narrower): one app fills the screen. */
|
|
57
|
+
phone: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** What a running app tells the shell, through {@link useAgentComputerAppHandlers}. */
|
|
60
|
+
interface AgentComputerAppHandlers {
|
|
61
|
+
/** Keyboard commands for the key window. Respect prevented events and IME composition. */
|
|
62
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
63
|
+
/**
|
|
64
|
+
* Confirm unsaved work before the app quits: from its app menu, ⌘Q, or a
|
|
65
|
+
* phone's App Switcher. Return false to keep it running. Rejections also
|
|
66
|
+
* keep it running and are announced. Closing a window never asks: the app
|
|
67
|
+
* keeps running, with its state, until it quits.
|
|
68
|
+
*/
|
|
69
|
+
beforeQuit?: () => boolean | Promise<boolean>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* An app the computer can run. Its parts are component types, defined at
|
|
73
|
+
* module level: a new type each render remounts the part and loses its state.
|
|
74
|
+
* Parts read their window with {@link useAgentComputerWindow} and
|
|
75
|
+
* {@link useAgentComputerWindowActive}, and open other
|
|
76
|
+
* apps with {@link useAgentComputerActions}.
|
|
77
|
+
*
|
|
78
|
+
* An app runs from its first launch until it quits. Closing its window hides
|
|
79
|
+
* it, keeping its state and its Dock dot, as macOS does; quitting unmounts it.
|
|
80
|
+
* A phone's background apps are hidden the same way.
|
|
81
|
+
*/
|
|
82
|
+
interface AgentComputerApp {
|
|
83
|
+
/** Stable app identity, shared by its window and launcher. */
|
|
84
|
+
id: string;
|
|
85
|
+
/** Visible window title and accessible launcher name. */
|
|
86
|
+
label: string;
|
|
87
|
+
/** Finished decorative artwork, preserving its own silhouette. The launcher supplies size and an accessible name, without adding a tile or clipping mask. */
|
|
88
|
+
icon: React.ReactNode;
|
|
89
|
+
/** Favorites appear in both docks; standard apps appear in the desktop dock only.
|
|
90
|
+
* Hidden apps launch from their owning content. Defaults to standard. */
|
|
91
|
+
launcher?: "favorite" | "standard" | "hidden";
|
|
92
|
+
/**
|
|
93
|
+
* Opens workspace files dropped on the app's desktop Dock tile, as macOS
|
|
94
|
+
* opens a file dropped on an app; the app then comes forward. A tile
|
|
95
|
+
* without it refuses the drop.
|
|
96
|
+
*/
|
|
97
|
+
onWorkspaceDrop?: (drop: WorkspaceDragSource) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Warms the app's first screen when someone shows intent to open it: the
|
|
100
|
+
* pointer entering or focus reaching its Dock tile. The shell calls it
|
|
101
|
+
* without rendering, so it may run often; fetch through a cache, such as
|
|
102
|
+
* TanStack Query's `prefetchQuery`, that makes a repeat call free.
|
|
103
|
+
*/
|
|
104
|
+
preload?: () => void;
|
|
105
|
+
/**
|
|
106
|
+
* Initial floating size in CSS pixels, centered and clamped to the desktop.
|
|
107
|
+
* Home on the move/resize controls resets to this geometry. Saved bounds
|
|
108
|
+
* take precedence, and phone apps still fill the screen.
|
|
109
|
+
*/
|
|
110
|
+
defaultWindowSize?: AgentComputerWindowSize;
|
|
111
|
+
/**
|
|
112
|
+
* The Dock app this window belongs to, as a per-thread browser window belongs
|
|
113
|
+
* to Screen: the menu bar names that app, its Dock tile shows the dot, and
|
|
114
|
+
* quitting that app quits this window too. It has no Dock tile of its own.
|
|
115
|
+
*/
|
|
116
|
+
owner?: string;
|
|
117
|
+
/**
|
|
118
|
+
* A utility window of its `owner`, as Finder's Get Info is: fixed at
|
|
119
|
+
* `defaultWindowSize`, with a close button only — no minimize, zoom,
|
|
120
|
+
* tiling or full screen — and gone when closed rather than kept running.
|
|
121
|
+
* Open one per subject, each under an id of its own; opening one that is
|
|
122
|
+
* already open brings it forward.
|
|
123
|
+
*/
|
|
124
|
+
panel?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The app paints one unified title-bar toolbar, as a Tahoe app with
|
|
127
|
+
* controls does: the bar is the window frame and the app's title part fills
|
|
128
|
+
* it with its tabs or toolbar items, instead of a plain 28pt title band.
|
|
129
|
+
*/
|
|
130
|
+
titleBar?: "unified";
|
|
131
|
+
/**
|
|
132
|
+
* Wraps every part while the app runs: the place for state its title,
|
|
133
|
+
* actions, menus and content share, and for {@link useAgentComputerAppHandlers}.
|
|
134
|
+
*/
|
|
135
|
+
Provider?: React.ComponentType<{
|
|
136
|
+
children: React.ReactNode;
|
|
137
|
+
}>;
|
|
138
|
+
/** Title-bar content in place of the label, such as a browser's tab strip. The label stays the accessible name.
|
|
139
|
+
* A control marked `data-nav-back` becomes the phone navigation bar's leading
|
|
140
|
+
* Back, in place of the shell's Home control. */
|
|
141
|
+
Title?: React.ComponentType;
|
|
142
|
+
/** Trailing title-bar controls, such as a browser's tab search. A phone keeps
|
|
143
|
+
* them in the navigation bar's trailing slot, as iOS does, unless the app
|
|
144
|
+
* paints its own bar — then they become its bottom toolbar. Render nothing
|
|
145
|
+
* to leave the slot out. */
|
|
146
|
+
Actions?: React.ComponentType;
|
|
147
|
+
/** App-owned Menubar.Item elements atop the app menu, above Hide, such as Finder's Empty Trash. */
|
|
148
|
+
AppMenu?: React.ComponentType;
|
|
149
|
+
/** App-owned Menubar.Menu elements, between the app menu and Window; shown only for the active desktop app. */
|
|
150
|
+
Menus?: React.ComponentType;
|
|
151
|
+
/**
|
|
152
|
+
* The window's content. An app whose content paints its own navigation bar
|
|
153
|
+
* (Slack's channel header, a file view's top bar) marks it `data-nav-bar`,
|
|
154
|
+
* and the phone shell's window bar yields to it so a phone screen never
|
|
155
|
+
* stacks two bars. Domain state belongs above the computer; quitting an app
|
|
156
|
+
* unmounts its view, never cancels the underlying work.
|
|
157
|
+
*/
|
|
158
|
+
Content: React.ComponentType;
|
|
159
|
+
}
|
|
160
|
+
/** A window's size in CSS pixels. */
|
|
161
|
+
interface AgentComputerWindowSize {
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
}
|
|
165
|
+
/** A window's free-floating rectangle in CSS pixels relative to the desktop stage. */
|
|
166
|
+
interface AgentComputerWindowBounds extends AgentComputerWindowSize {
|
|
167
|
+
x: number;
|
|
168
|
+
y: number;
|
|
169
|
+
}
|
|
170
|
+
/** Placement keeps the floating bounds intact while the window occupies a tile. */
|
|
171
|
+
interface AgentComputerWindowLayout {
|
|
172
|
+
id: string;
|
|
173
|
+
/** Null until a new window has been measured on a desktop. */
|
|
174
|
+
bounds: AgentComputerWindowBounds | null;
|
|
175
|
+
/** Floating, or one of macOS's tiles: Fill (the whole desktop), a half, or a quarter. */
|
|
176
|
+
placement: "floating" | "fill" | "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
177
|
+
minimized: boolean;
|
|
178
|
+
}
|
|
179
|
+
/** Presentation only: apps and unsaved work are owned by the host, never serialized here. */
|
|
180
|
+
interface AgentComputerLayout {
|
|
181
|
+
/** Open windows, ordered back to front. */
|
|
182
|
+
windows: readonly AgentComputerWindowLayout[];
|
|
183
|
+
activeAppId: string | null;
|
|
184
|
+
/** One full-screen window; exiting returns to its existing placement. */
|
|
185
|
+
expandedAppId: string | null;
|
|
186
|
+
/** Desktop inspection preserves visible windows without an active app. */
|
|
187
|
+
surface: "desktop" | "home";
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Who is opening an app, and from where. The person is the default: their
|
|
191
|
+
* window comes forward and takes the keyboard. The agent's window yields to
|
|
192
|
+
* someone who is working — it opens behind the key window, its Dock tile (a
|
|
193
|
+
* phone's Home icon) is marked until it is brought forward, and nothing takes
|
|
194
|
+
* focus — and it plays a brief highlight once it is on screen either way.
|
|
195
|
+
*/
|
|
196
|
+
type AgentComputerOpenOptions = {
|
|
197
|
+
/**
|
|
198
|
+
* What the window grows out of: a Dock tile, a notification, the tool row in
|
|
199
|
+
* the conversation that opened it. Measured when `openApp` is called and
|
|
200
|
+
* never saved, so an element that unmounts afterwards is fine.
|
|
201
|
+
*/
|
|
202
|
+
from?: Element | DOMRect;
|
|
203
|
+
} & ({
|
|
204
|
+
by?: "user";
|
|
205
|
+
step?: never;
|
|
206
|
+
} | {
|
|
207
|
+
by: "agent";
|
|
208
|
+
/**
|
|
209
|
+
* The step that opened the window, in the conversation's words, read as
|
|
210
|
+
* the window's accessible description until the person opens it again.
|
|
211
|
+
*/
|
|
212
|
+
step?: string;
|
|
213
|
+
});
|
|
214
|
+
/** The computer's actions: one object for the computer's lifetime. */
|
|
215
|
+
interface AgentComputerActions {
|
|
216
|
+
/**
|
|
217
|
+
* Open or raise an application using the same focus and window lifecycle as
|
|
218
|
+
* the Dock. Resolves to its window once it is laid out on screen, or null
|
|
219
|
+
* when it was not within two seconds: an app the host never adds, a window
|
|
220
|
+
* left in the Dock, or an open a later one for the same app superseded.
|
|
221
|
+
*/
|
|
222
|
+
openApp: (id: string, options?: AgentComputerOpenOptions) => Promise<HTMLElement | null>;
|
|
223
|
+
/** Opens Spotlight, the workspace search. */
|
|
224
|
+
openSpotlight: () => void;
|
|
225
|
+
}
|
|
226
|
+
/** The window an app part is rendered in. Throws outside an app's parts. */
|
|
227
|
+
declare function useAgentComputerWindow(): AgentComputerWindow;
|
|
228
|
+
/**
|
|
229
|
+
* Whether the window an app part is rendered in is key (frontmost); mount
|
|
230
|
+
* expensive live viewers only while it is. Focus moves on every window action,
|
|
231
|
+
* so read it in the part that draws it, not at the top of the app.
|
|
232
|
+
*/
|
|
233
|
+
declare function useAgentComputerWindowActive(): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* The computer's actions, for anything rendered inside it: app parts, Home,
|
|
236
|
+
* the desktop, the status items and the Home widget. The object never changes,
|
|
237
|
+
* so reading it re-renders nothing.
|
|
238
|
+
*/
|
|
239
|
+
declare function useAgentComputerActions(): AgentComputerActions;
|
|
240
|
+
/**
|
|
241
|
+
* Where an overlay rendered inside the computer portals — Quick Look, a
|
|
242
|
+
* notification banner — so it sits on the computer's screen, above its
|
|
243
|
+
* windows, rather than on the page. Pass it as a Base UI portal's `container`:
|
|
244
|
+
* it is null until the computer has mounted it, which the portal waits for,
|
|
245
|
+
* and undefined outside a computer, where the portal keeps its default.
|
|
246
|
+
*/
|
|
247
|
+
declare function useAgentComputerPortalContainer(): HTMLElement | null | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Registers the running app's keyboard commands and quit guard. Call it once
|
|
250
|
+
* per app, from its Provider or its Content; the latest handlers are always
|
|
251
|
+
* the ones called.
|
|
252
|
+
*/
|
|
253
|
+
declare function useAgentComputerAppHandlers(handlers: AgentComputerAppHandlers): void;
|
|
254
|
+
interface AgentComputerProps extends Omit<React.ComponentPropsWithRef<"div">, "children"> {
|
|
255
|
+
/** The same actions outside the computer, such as a conversation's file links beside it. */
|
|
256
|
+
actionsRef?: React.Ref<AgentComputerActions>;
|
|
257
|
+
/** A phone-only Home widget. The shell chooses the responsive surface, so
|
|
258
|
+
* hosts do not need a second breakpoint. */
|
|
259
|
+
homeWidget?: React.ReactNode;
|
|
260
|
+
/** Route-selected application. Null selects Home on a phone; desktop
|
|
261
|
+
* inspection may keep windows visible without a key window. Omit for local
|
|
262
|
+
* presentation; a controlled computer starts from the saved layout's key
|
|
263
|
+
* window. Changes retain already-open app views and their drafts, and
|
|
264
|
+
* selecting an app again raises its window when it is closed or minimized. */
|
|
265
|
+
activeAppId?: string | null;
|
|
266
|
+
/** The person's own activation, or null when inspecting the desktop, hiding a
|
|
267
|
+
* window, or showing Home. Never called back for a selection `activeAppId`
|
|
268
|
+
* made. A host can commit it to its Router. */
|
|
269
|
+
onActiveAppChange?: (id: string | null) => void;
|
|
270
|
+
/**
|
|
271
|
+
* The host's own apps, after the ones the app Hosts above the computer add
|
|
272
|
+
* (Chrome, Files, Automations, Calendar, Settings, in that order).
|
|
273
|
+
*/
|
|
274
|
+
apps?: readonly AgentComputerApp[];
|
|
275
|
+
/** The saved presentation the computer starts from: read once, when it mounts. */
|
|
276
|
+
presentation?: ComputerPresentation;
|
|
277
|
+
/** Every change to the presentation, whole, for the host to save. */
|
|
278
|
+
onPresentationChange?: (presentation: ComputerPresentation) => void;
|
|
279
|
+
/** Notification Center's notifications, newest first. A new id raises a banner once. */
|
|
280
|
+
notifications?: readonly ComputerNotification[];
|
|
281
|
+
/**
|
|
282
|
+
* What is wrong with the workspace's connection, such as "Workspace
|
|
283
|
+
* offline": a warning in the menu bar. Omit it, or pass null, while connected.
|
|
284
|
+
*/
|
|
285
|
+
connection?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* Spotlight's results beside the computer's own files, apps and actions,
|
|
288
|
+
* such as conversations. Called as the query changes; the latest call wins.
|
|
289
|
+
*/
|
|
290
|
+
extraResults?: (query: string) => Promise<readonly CommandPaletteCommand[]>;
|
|
291
|
+
/** A host's own menu-bar items, before the connection warning and the clock. */
|
|
292
|
+
extras?: React.ReactNode;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* One employee's desktop, reflowing to full-screen apps on a narrow host.
|
|
296
|
+
* Composes AppFrame; owns only ephemeral window order, placement, minimize,
|
|
297
|
+
* expand, and focus state.
|
|
298
|
+
* Supply Files, Chrome, Automations, and provider apps using their existing
|
|
299
|
+
* components; the employee conversation stays outside, beside the computer.
|
|
300
|
+
* There is no simulated filesystem or agent runtime.
|
|
301
|
+
* Use a key when changing employee identity to reset their presentation state.
|
|
302
|
+
*/
|
|
303
|
+
declare function AgentComputer({ actionsRef, homeWidget, activeAppId: selected, onActiveAppChange, apps: hostApps, presentation: savedPresentation, onPresentationChange, notifications, connection, extraResults, extras, style, ...props }: AgentComputerProps): React.JSX.Element;
|
|
304
|
+
//#endregion
|
|
305
|
+
export { DockArrangement as C, readComputerPresentation as S, ComputerFolderView as _, AgentComputerLayout as a, DEFAULT_COMPUTER_PRESENTATION as b, AgentComputerWindow as c, AgentComputerWindowSize as d, useAgentComputerActions as f, useAgentComputerWindowActive as g, useAgentComputerWindow as h, AgentComputerAppHandlers as i, AgentComputerWindowBounds as l, useAgentComputerPortalContainer as m, AgentComputerActions as n, AgentComputerOpenOptions as o, useAgentComputerAppHandlers as p, AgentComputerApp as r, AgentComputerProps as s, AgentComputer as t, AgentComputerWindowLayout as u, ComputerFolderViews as v, MAX_FOLDER_VIEWS as x, ComputerPresentation as y };
|