@mcp-b/react-components 0.64.1 → 0.66.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-2uYB8kmu.js +8084 -0
- package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
- package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
- package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
- package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
- package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
- package/dist/assets/wallpapers/README.md +31 -0
- package/dist/assets/wallpapers/alpine.webp +0 -0
- package/dist/assets/wallpapers/dusk.webp +0 -0
- package/dist/assets/wallpapers/ember.webp +0 -0
- package/dist/assets/wallpapers/graphite.webp +0 -0
- package/dist/assets/wallpapers/sigvelo.webp +0 -0
- package/dist/assets/wallpapers/tide.webp +0 -0
- package/dist/automations-host-DPORjdc7.js +17 -0
- package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
- package/dist/components/agents-sdk/AgentComputer.js +1 -8044
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
- package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
- package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
- package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
- package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
- package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
- package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
- package/dist/components/agents-sdk/ComputerHome.js +90 -0
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
- package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
- package/dist/components/agents-sdk/ComputerScreen.js +750 -0
- package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
- package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
- package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
- package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
- package/dist/components/agents-sdk/ComputerViewer.js +339 -0
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
- package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
- package/dist/components/agents-sdk/EmployeeApp.js +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +4 -4
- package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
- package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
- 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 +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
- package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
- package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
- package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
- package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
- package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -1
- package/dist/components/agents-sdk/WorkspaceProject.js +7 -4
- package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
- package/dist/components/ai-sdk/Goal.d.ts +1 -2
- package/dist/components/ai-sdk/Goal.js +1 -2
- package/dist/components/extension/FirstRunSetup.d.ts +132 -37
- package/dist/components/extension/FirstRunSetup.js +1920 -1567
- package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
- package/dist/components/general-purpose/CommandPalette.js +90 -82
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/StatusScreen.d.ts +6 -1
- package/dist/components/general-purpose/StatusScreen.js +44 -36
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/parts-BxJC0QVb.js +112 -0
- package/dist/styles/agent-computer.css +28 -0
- package/dist/styles/base.css +6 -0
- package/dist/styles/chatgpt-sign-in-screen.css +2 -0
- package/dist/styles/computer-app-tile.css +20 -0
- package/dist/styles/computer-automations.css +454 -0
- package/dist/styles/computer-calendar.css +648 -0
- package/dist/styles/computer-files.css +566 -0
- package/dist/styles/computer-home.css +90 -0
- package/dist/styles/computer-notifications.css +242 -0
- package/dist/styles/computer-screen.css +89 -0
- package/dist/styles/computer-settings.css +550 -0
- package/dist/styles/computer-spotlight.css +7 -0
- package/dist/styles/computer-viewer.css +130 -0
- package/dist/styles/first-run-setup.css +107 -96
- package/dist/styles/index.css +11 -0
- package/dist/styles/recipes.css +42 -0
- package/dist/styles/select.css +2 -1
- package/dist/styles/switch.css +20 -5
- package/dist/styles/workspace-document-frame.css +31 -0
- package/package.json +2 -2
- package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
- package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
- package/dist/{connected-app-drafts-Bocdg3Z-.js → connected-app-drafts-C49343p9.js} +1 -1
|
@@ -34,6 +34,11 @@ export interface CommandPaletteProps {
|
|
|
34
34
|
* the search centres on and blocks. Defaults to the document body.
|
|
35
35
|
*/
|
|
36
36
|
container?: HTMLElement | null;
|
|
37
|
+
/**
|
|
38
|
+
* Receives the query as it is typed, for a host that searches a source of
|
|
39
|
+
* its own. Its results still pass the palette's own match.
|
|
40
|
+
*/
|
|
41
|
+
onQueryChange?: (query: string) => void;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Modal command search using Base UI's inline Combobox and Dialog, shaped like
|
|
@@ -43,5 +48,5 @@ export interface CommandPaletteProps {
|
|
|
43
48
|
* initiating focus. The host owns commands and keyboard shortcuts; actions run
|
|
44
49
|
* after dismissal.
|
|
45
50
|
*/
|
|
46
|
-
export declare function CommandPalette({ commands, open, onOpenChange, children, container }: CommandPaletteProps): import("react").JSX.Element;
|
|
51
|
+
export declare function CommandPalette({ commands, open, onOpenChange, children, container, onQueryChange }: CommandPaletteProps): import("react").JSX.Element;
|
|
47
52
|
//#endregion
|
|
@@ -16,8 +16,8 @@ const LABEL = "Search workspace";
|
|
|
16
16
|
* after dismissal.
|
|
17
17
|
*/
|
|
18
18
|
function CommandPalette(t0) {
|
|
19
|
-
const $ = c(
|
|
20
|
-
const { commands, open, onOpenChange, children, container } = t0;
|
|
19
|
+
const $ = c(34);
|
|
20
|
+
const { commands, open, onOpenChange, children, container, onQueryChange } = t0;
|
|
21
21
|
const inputRef = useRef(null);
|
|
22
22
|
const [results, setResults] = useState(null);
|
|
23
23
|
useWholeRows(results);
|
|
@@ -49,54 +49,60 @@ function CommandPalette(t0) {
|
|
|
49
49
|
}
|
|
50
50
|
useEffect(t2, t3);
|
|
51
51
|
let t4;
|
|
52
|
-
if ($[5] !==
|
|
53
|
-
t4 = (
|
|
52
|
+
if ($[5] !== onQueryChange) {
|
|
53
|
+
t4 = (query) => onQueryChange?.(query);
|
|
54
|
+
$[5] = onQueryChange;
|
|
55
|
+
$[6] = t4;
|
|
56
|
+
} else t4 = $[6];
|
|
57
|
+
let t5;
|
|
58
|
+
if ($[7] !== onOpenChange) {
|
|
59
|
+
t5 = (command_2) => {
|
|
54
60
|
if (!command_2) return;
|
|
55
61
|
pending.current = command_2.onSelect;
|
|
56
62
|
onOpenChange(false);
|
|
57
63
|
};
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else
|
|
61
|
-
let
|
|
62
|
-
if ($[
|
|
63
|
-
|
|
64
|
+
$[7] = onOpenChange;
|
|
65
|
+
$[8] = t5;
|
|
66
|
+
} else t5 = $[8];
|
|
67
|
+
let t6;
|
|
68
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
69
|
+
t6 = (isOpen) => {
|
|
64
70
|
if (!isOpen && pending.current && !executed.current) {
|
|
65
71
|
executed.current = true;
|
|
66
72
|
pending.current();
|
|
67
73
|
}
|
|
68
74
|
};
|
|
69
|
-
$[
|
|
70
|
-
} else
|
|
71
|
-
let t6;
|
|
72
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
-
t6 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "command-palette__backdrop" });
|
|
74
|
-
$[8] = t6;
|
|
75
|
-
} else t6 = $[8];
|
|
75
|
+
$[9] = t6;
|
|
76
|
+
} else t6 = $[9];
|
|
76
77
|
let t7;
|
|
78
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
79
|
+
t7 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "command-palette__backdrop" });
|
|
80
|
+
$[10] = t7;
|
|
81
|
+
} else t7 = $[10];
|
|
82
|
+
let t10;
|
|
77
83
|
let t8;
|
|
78
84
|
let t9;
|
|
79
|
-
if ($[
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
86
|
+
t8 = () => !pending.current;
|
|
87
|
+
t9 = /* @__PURE__ */ jsx(Dialog.Title, {
|
|
82
88
|
className: "sigvelo-visually-hidden",
|
|
83
89
|
children: LABEL
|
|
84
90
|
});
|
|
85
|
-
|
|
91
|
+
t10 = /* @__PURE__ */ jsx(Dialog.Description, {
|
|
86
92
|
className: "sigvelo-visually-hidden",
|
|
87
93
|
children: "Find applications, files, conversations, and actions. Use arrow keys and Enter to select."
|
|
88
94
|
});
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
95
|
+
$[11] = t10;
|
|
96
|
+
$[12] = t8;
|
|
97
|
+
$[13] = t9;
|
|
92
98
|
} else {
|
|
93
|
-
|
|
94
|
-
t8 = $[
|
|
95
|
-
t9 = $[
|
|
99
|
+
t10 = $[11];
|
|
100
|
+
t8 = $[12];
|
|
101
|
+
t9 = $[13];
|
|
96
102
|
}
|
|
97
|
-
let
|
|
98
|
-
if ($[
|
|
99
|
-
|
|
103
|
+
let t11;
|
|
104
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
|
+
t11 = /* @__PURE__ */ jsxs(Combobox.InputGroup, {
|
|
100
106
|
className: "command-palette__input-group",
|
|
101
107
|
children: [/* @__PURE__ */ jsx(SearchIcon, {}), /* @__PURE__ */ jsx(Combobox.Input, {
|
|
102
108
|
className: "command-palette__input",
|
|
@@ -105,70 +111,70 @@ function CommandPalette(t0) {
|
|
|
105
111
|
placeholder: "Search apps, files, conversations…"
|
|
106
112
|
})]
|
|
107
113
|
});
|
|
108
|
-
$[
|
|
109
|
-
} else
|
|
110
|
-
let
|
|
111
|
-
if ($[
|
|
112
|
-
|
|
114
|
+
$[14] = t11;
|
|
115
|
+
} else t11 = $[14];
|
|
116
|
+
let t12;
|
|
117
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
113
119
|
ref: setResults,
|
|
114
120
|
className: "command-palette__results",
|
|
115
121
|
children: [/* @__PURE__ */ jsx(Combobox.List, { children: _temp5 }), /* @__PURE__ */ jsx(Combobox.Empty, { children: "No matching commands" })]
|
|
116
122
|
});
|
|
117
|
-
$[13] = t11;
|
|
118
|
-
} else t11 = $[13];
|
|
119
|
-
let t12;
|
|
120
|
-
if ($[14] !== children) {
|
|
121
|
-
t12 = children ? /* @__PURE__ */ jsx("div", {
|
|
122
|
-
className: "command-palette__status",
|
|
123
|
-
children
|
|
124
|
-
}) : null;
|
|
125
|
-
$[14] = children;
|
|
126
123
|
$[15] = t12;
|
|
127
124
|
} else t12 = $[15];
|
|
128
125
|
let t13;
|
|
129
|
-
if ($[16] !==
|
|
130
|
-
t13 =
|
|
126
|
+
if ($[16] !== children) {
|
|
127
|
+
t13 = children ? /* @__PURE__ */ jsx("div", {
|
|
128
|
+
className: "command-palette__status",
|
|
129
|
+
children
|
|
130
|
+
}) : null;
|
|
131
|
+
$[16] = children;
|
|
132
|
+
$[17] = t13;
|
|
133
|
+
} else t13 = $[17];
|
|
134
|
+
let t14;
|
|
135
|
+
if ($[18] !== t13) {
|
|
136
|
+
t14 = /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
131
137
|
className: "command-palette",
|
|
132
138
|
"data-command-palette": "",
|
|
133
139
|
initialFocus: inputRef,
|
|
134
|
-
finalFocus:
|
|
140
|
+
finalFocus: t8,
|
|
135
141
|
children: [
|
|
136
|
-
t8,
|
|
137
142
|
t9,
|
|
138
143
|
t10,
|
|
139
144
|
t11,
|
|
140
|
-
t12
|
|
145
|
+
t12,
|
|
146
|
+
t13
|
|
141
147
|
]
|
|
142
148
|
}) });
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
} else
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
148
|
-
|
|
149
|
+
$[18] = t13;
|
|
150
|
+
$[19] = t14;
|
|
151
|
+
} else t14 = $[19];
|
|
152
|
+
let t15;
|
|
153
|
+
if ($[20] !== container || $[21] !== t14) {
|
|
154
|
+
t15 = /* @__PURE__ */ jsxs(Dialog.Portal, {
|
|
149
155
|
container,
|
|
150
|
-
children: [
|
|
156
|
+
children: [t7, t14]
|
|
151
157
|
});
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
158
|
+
$[20] = container;
|
|
159
|
+
$[21] = t14;
|
|
160
|
+
$[22] = t15;
|
|
161
|
+
} else t15 = $[22];
|
|
162
|
+
let t16;
|
|
163
|
+
if ($[23] !== onOpenChange || $[24] !== open || $[25] !== t15) {
|
|
164
|
+
t16 = /* @__PURE__ */ jsx(Dialog.Root, {
|
|
159
165
|
open,
|
|
160
166
|
onOpenChange,
|
|
161
|
-
onOpenChangeComplete:
|
|
162
|
-
children:
|
|
167
|
+
onOpenChangeComplete: t6,
|
|
168
|
+
children: t15
|
|
163
169
|
});
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
} else
|
|
169
|
-
let
|
|
170
|
-
if ($[
|
|
171
|
-
|
|
170
|
+
$[23] = onOpenChange;
|
|
171
|
+
$[24] = open;
|
|
172
|
+
$[25] = t15;
|
|
173
|
+
$[26] = t16;
|
|
174
|
+
} else t16 = $[26];
|
|
175
|
+
let t17;
|
|
176
|
+
if ($[27] !== groups || $[28] !== onOpenChange || $[29] !== open || $[30] !== t16 || $[31] !== t4 || $[32] !== t5) {
|
|
177
|
+
t17 = /* @__PURE__ */ jsx(Combobox.Root, {
|
|
172
178
|
items: groups,
|
|
173
179
|
inline: true,
|
|
174
180
|
open,
|
|
@@ -178,18 +184,20 @@ function CommandPalette(t0) {
|
|
|
178
184
|
itemToStringLabel: _temp,
|
|
179
185
|
itemToStringValue: _temp2,
|
|
180
186
|
filter: commandMatchesQuery,
|
|
187
|
+
onInputValueChange: t4,
|
|
181
188
|
onItemHighlighted: _temp3,
|
|
182
|
-
onValueChange:
|
|
183
|
-
children:
|
|
189
|
+
onValueChange: t5,
|
|
190
|
+
children: t16
|
|
184
191
|
});
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[28] = t15;
|
|
189
|
-
$[29] = t4;
|
|
192
|
+
$[27] = groups;
|
|
193
|
+
$[28] = onOpenChange;
|
|
194
|
+
$[29] = open;
|
|
190
195
|
$[30] = t16;
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
$[31] = t4;
|
|
197
|
+
$[32] = t5;
|
|
198
|
+
$[33] = t17;
|
|
199
|
+
} else t17 = $[33];
|
|
200
|
+
return t17;
|
|
193
201
|
}
|
|
194
202
|
function _temp5(group) {
|
|
195
203
|
return /* @__PURE__ */ jsxs(Combobox.Group, {
|
|
@@ -4,8 +4,8 @@ import { t as capitalize } from "../../format-DL7f2rqp.js";
|
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
5
|
import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
|
|
6
6
|
import { t as isAtMostRem } from "../../container-width-C43ccJ84.js";
|
|
7
|
-
import { AppTopBar } from "./AppTopBar.js";
|
|
8
7
|
import { n as ShellAppBarOutletContext, r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
|
|
8
|
+
import { AppTopBar } from "./AppTopBar.js";
|
|
9
9
|
import { ResizableSidePanel } from "./ResizableSidePanel.js";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
11
|
import * as React from "react";
|
|
@@ -2,9 +2,14 @@ import { EmptyStateProps } from "../foundations/EmptyState.js";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/general-purpose/StatusScreen.d.ts
|
|
4
4
|
/** A whole-region status with one shared layout for its message and recovery actions. */
|
|
5
|
-
export declare function StatusScreen({ role, page, title, ...props }: EmptyStateProps & {
|
|
5
|
+
export declare function StatusScreen({ role, page, titleId, title, ...props }: EmptyStateProps & {
|
|
6
6
|
/** Standalone page semantics: a main landmark and level-one title. */
|
|
7
7
|
page?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Inside a frame that is already the page's `main`, such as `FirstRunFrame`, the id the frame
|
|
10
|
+
* labels its screen by. The title then renders as the level-one heading carrying that id.
|
|
11
|
+
*/
|
|
12
|
+
titleId?: string;
|
|
8
13
|
}): React.JSX.Element;
|
|
9
14
|
/** Nonvisual route/status updates; the host supplies the localized announcement. */
|
|
10
15
|
export declare function StatusAnnouncement({ children }: {
|
|
@@ -4,74 +4,82 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/general-purpose/StatusScreen.tsx
|
|
5
5
|
/** A whole-region status with one shared layout for its message and recovery actions. */
|
|
6
6
|
function StatusScreen(t0) {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(20);
|
|
8
8
|
let props;
|
|
9
9
|
let t1;
|
|
10
10
|
let t2;
|
|
11
11
|
let title;
|
|
12
|
+
let titleId;
|
|
12
13
|
if ($[0] !== t0) {
|
|
13
|
-
({role: t1, page: t2, title, ...props} = t0);
|
|
14
|
+
({role: t1, page: t2, titleId, title, ...props} = t0);
|
|
14
15
|
$[0] = t0;
|
|
15
16
|
$[1] = props;
|
|
16
17
|
$[2] = t1;
|
|
17
18
|
$[3] = t2;
|
|
18
19
|
$[4] = title;
|
|
20
|
+
$[5] = titleId;
|
|
19
21
|
} else {
|
|
20
22
|
props = $[1];
|
|
21
23
|
t1 = $[2];
|
|
22
24
|
t2 = $[3];
|
|
23
25
|
title = $[4];
|
|
26
|
+
titleId = $[5];
|
|
24
27
|
}
|
|
25
28
|
const role = t1 === void 0 ? "status" : t1;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const page = t2 === void 0 ? false : t2;
|
|
30
|
+
let t3;
|
|
31
|
+
if ($[6] !== page || $[7] !== title || $[8] !== titleId) {
|
|
32
|
+
t3 = title && (page || titleId) ? /* @__PURE__ */ jsx("h1", {
|
|
33
|
+
className: "status-screen__title",
|
|
34
|
+
id: titleId,
|
|
35
|
+
children: title
|
|
36
|
+
}) : title;
|
|
37
|
+
$[6] = page;
|
|
38
|
+
$[7] = title;
|
|
39
|
+
$[8] = titleId;
|
|
40
|
+
$[9] = t3;
|
|
41
|
+
} else t3 = $[9];
|
|
42
|
+
const heading = t3;
|
|
43
|
+
if (page) {
|
|
36
44
|
let t4;
|
|
37
|
-
if ($[
|
|
45
|
+
if ($[10] !== heading || $[11] !== props || $[12] !== role) {
|
|
38
46
|
t4 = /* @__PURE__ */ jsx("main", {
|
|
39
47
|
className: "status-screen",
|
|
40
48
|
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
41
49
|
...props,
|
|
42
50
|
role,
|
|
43
|
-
title:
|
|
51
|
+
title: heading
|
|
44
52
|
})
|
|
45
53
|
});
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
49
|
-
$[
|
|
50
|
-
} else t4 = $[
|
|
54
|
+
$[10] = heading;
|
|
55
|
+
$[11] = props;
|
|
56
|
+
$[12] = role;
|
|
57
|
+
$[13] = t4;
|
|
58
|
+
} else t4 = $[13];
|
|
51
59
|
return t4;
|
|
52
60
|
}
|
|
53
|
-
let
|
|
54
|
-
if ($[
|
|
55
|
-
|
|
56
|
-
title,
|
|
61
|
+
let t4;
|
|
62
|
+
if ($[14] !== heading || $[15] !== props) {
|
|
63
|
+
t4 = /* @__PURE__ */ jsx(EmptyState, {
|
|
64
|
+
title: heading,
|
|
57
65
|
...props
|
|
58
66
|
});
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
} else
|
|
63
|
-
let
|
|
64
|
-
if ($[
|
|
65
|
-
|
|
67
|
+
$[14] = heading;
|
|
68
|
+
$[15] = props;
|
|
69
|
+
$[16] = t4;
|
|
70
|
+
} else t4 = $[16];
|
|
71
|
+
let t5;
|
|
72
|
+
if ($[17] !== role || $[18] !== t4) {
|
|
73
|
+
t5 = /* @__PURE__ */ jsx("section", {
|
|
66
74
|
className: "status-screen",
|
|
67
75
|
role,
|
|
68
|
-
children:
|
|
76
|
+
children: t4
|
|
69
77
|
});
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
} else
|
|
74
|
-
return
|
|
78
|
+
$[17] = role;
|
|
79
|
+
$[18] = t4;
|
|
80
|
+
$[19] = t5;
|
|
81
|
+
} else t5 = $[19];
|
|
82
|
+
return t5;
|
|
75
83
|
}
|
|
76
84
|
/** Nonvisual route/status updates; the host supplies the localized announcement. */
|
|
77
85
|
function StatusAnnouncement(t0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as MoonIcon, W as MonitorIcon, ct as SunIcon } from "../../icons-nLTnB9kd.js";
|
|
2
|
-
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
3
2
|
import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
|
|
3
|
+
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/general-purpose/ThemeModeControl.tsx
|
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/** One host-supplied background. */
|
|
4
|
-
export interface WallpaperOption {
|
|
5
|
-
/** Stable identifier stored by the consuming application. */
|
|
6
|
-
value: string;
|
|
7
|
-
/** Visible and accessible name for this background. */
|
|
8
|
-
label: string;
|
|
9
|
-
/** Trusted CSS background shorthand supplied by the host. */
|
|
10
|
-
background: string;
|
|
11
|
-
/**
|
|
12
|
-
* The same picture's dark variant, as a background shorthand. It fades in
|
|
13
|
-
* over `background` while the document is dark: `data-theme="dark"`, or no
|
|
14
|
-
* `data-theme` and a dark OS.
|
|
15
|
-
*/
|
|
16
|
-
darkBackground?: string;
|
|
17
|
-
}
|
|
18
|
-
/** Props for {@link WallpaperPicker}. */
|
|
19
|
-
export interface WallpaperPickerProps extends Omit<ComponentPropsWithRef<"div">, "children" | "aria-label"> {
|
|
20
|
-
/** References a visible label for the thumbnail radio group. Defaults to its heading. */
|
|
21
|
-
"aria-labelledby"?: string;
|
|
22
|
-
/** Host-owned backgrounds. The picker owns no catalog or persistent state. */
|
|
23
|
-
wallpapers: readonly WallpaperOption[];
|
|
24
|
-
/** The selected wallpaper identifier. */
|
|
25
|
-
value: string;
|
|
26
|
-
/** Selection applies immediately. Arrow keys also select a background. */
|
|
27
|
-
onValueChange: (value: string) => void;
|
|
28
|
-
/** Host controls beside the current preview, such as a theme preference. */
|
|
29
|
-
selectionControls?: ReactNode;
|
|
30
|
-
}
|
|
31
|
-
/** A wallpaper preview and thumbnail gallery over the shared radio-group contract. */
|
|
32
|
-
export declare function WallpaperPicker({ wallpapers, value, onValueChange, selectionControls, className, "aria-labelledby": ariaLabelledBy, ...props }: WallpaperPickerProps): import("react").JSX.Element;
|
|
33
|
-
//#endregion
|
|
1
|
+
import { n as WallpaperPicker, r as WallpaperPickerProps, t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
|
|
2
|
+
export { WallpaperOption, WallpaperPicker, WallpaperPickerProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { F as LinkIcon } from "../../icons-nLTnB9kd.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
4
5
|
import { Popover } from "../foundations/Popover.js";
|
|
5
6
|
import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
|
|
6
|
-
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-2uYB8kmu.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/_internal/computer-apps/parts.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The shell's parts for an app whose state lives in one hook. Call it once,
|
|
8
|
+
* at module level: the hook runs in the app's Provider, so its state lasts
|
|
9
|
+
* while the app runs (closing hides it) and quitting discards it.
|
|
10
|
+
*/
|
|
11
|
+
function computerAppParts(useModel, parts = {}) {
|
|
12
|
+
const Model = React.createContext(null);
|
|
13
|
+
function useModelState() {
|
|
14
|
+
const $ = c(5);
|
|
15
|
+
const { phone } = useAgentComputerWindow();
|
|
16
|
+
const t0 = React.use(Model);
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[0] !== phone) {
|
|
19
|
+
t1 = { phone };
|
|
20
|
+
$[0] = phone;
|
|
21
|
+
$[1] = t1;
|
|
22
|
+
} else t1 = $[1];
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[2] !== t0 || $[3] !== t1) {
|
|
25
|
+
t2 = [t0, t1];
|
|
26
|
+
$[2] = t0;
|
|
27
|
+
$[3] = t1;
|
|
28
|
+
$[4] = t2;
|
|
29
|
+
} else t2 = $[4];
|
|
30
|
+
return t2;
|
|
31
|
+
}
|
|
32
|
+
function Provider(t0) {
|
|
33
|
+
const $ = c(6);
|
|
34
|
+
const { children } = t0;
|
|
35
|
+
const model = useModel();
|
|
36
|
+
let t1;
|
|
37
|
+
if ($[0] !== model.beforeQuit || $[1] !== model.onKeyDown) {
|
|
38
|
+
t1 = {
|
|
39
|
+
onKeyDown: model.onKeyDown,
|
|
40
|
+
beforeQuit: model.beforeQuit
|
|
41
|
+
};
|
|
42
|
+
$[0] = model.beforeQuit;
|
|
43
|
+
$[1] = model.onKeyDown;
|
|
44
|
+
$[2] = t1;
|
|
45
|
+
} else t1 = $[2];
|
|
46
|
+
useAgentComputerAppHandlers(t1);
|
|
47
|
+
let t2;
|
|
48
|
+
if ($[3] !== children || $[4] !== model) {
|
|
49
|
+
t2 = /* @__PURE__ */ jsx(Model, {
|
|
50
|
+
value: model,
|
|
51
|
+
children
|
|
52
|
+
});
|
|
53
|
+
$[3] = children;
|
|
54
|
+
$[4] = model;
|
|
55
|
+
$[5] = t2;
|
|
56
|
+
} else t2 = $[5];
|
|
57
|
+
return t2;
|
|
58
|
+
}
|
|
59
|
+
function Title() {
|
|
60
|
+
const $ = c(3);
|
|
61
|
+
const [model, state] = useModelState();
|
|
62
|
+
let t0;
|
|
63
|
+
if ($[0] !== model || $[1] !== state) {
|
|
64
|
+
t0 = model.renderTitle?.(state);
|
|
65
|
+
$[0] = model;
|
|
66
|
+
$[1] = state;
|
|
67
|
+
$[2] = t0;
|
|
68
|
+
} else t0 = $[2];
|
|
69
|
+
return t0;
|
|
70
|
+
}
|
|
71
|
+
function Menus() {
|
|
72
|
+
const $ = c(3);
|
|
73
|
+
const [model, state] = useModelState();
|
|
74
|
+
let t0;
|
|
75
|
+
if ($[0] !== model || $[1] !== state) {
|
|
76
|
+
t0 = model.renderMenus?.(state);
|
|
77
|
+
$[0] = model;
|
|
78
|
+
$[1] = state;
|
|
79
|
+
$[2] = t0;
|
|
80
|
+
} else t0 = $[2];
|
|
81
|
+
return t0;
|
|
82
|
+
}
|
|
83
|
+
function Content() {
|
|
84
|
+
const $ = c(3);
|
|
85
|
+
const [model, state] = useModelState();
|
|
86
|
+
let t0;
|
|
87
|
+
if ($[0] !== model || $[1] !== state) {
|
|
88
|
+
t0 = model.render(state);
|
|
89
|
+
$[0] = model;
|
|
90
|
+
$[1] = state;
|
|
91
|
+
$[2] = t0;
|
|
92
|
+
} else t0 = $[2];
|
|
93
|
+
return t0;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
Provider,
|
|
97
|
+
Title: parts.title ? Title : void 0,
|
|
98
|
+
Menus: parts.menus ? Menus : void 0,
|
|
99
|
+
Content
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/** Tahoe's app icon: one squircle tile under a first-party mark. */
|
|
103
|
+
function computerAppTile(mark, plate) {
|
|
104
|
+
return /* @__PURE__ */ jsx("span", {
|
|
105
|
+
className: "computer-app-tile",
|
|
106
|
+
style: plate ? { background: plate } : void 0,
|
|
107
|
+
"aria-hidden": "true",
|
|
108
|
+
children: mark
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { computerAppTile as n, computerAppParts as t };
|
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
* Apple's and keeps the four columns on a 90.8 pitch against the measured
|
|
27
27
|
* 90.7.
|
|
28
28
|
*/
|
|
29
|
+
/* The shell's geometry and planes, as the hooks its apps' sheets read. */
|
|
30
|
+
--sigvelo-recipe-computer-nav-height: var(--computer-nav-height);
|
|
31
|
+
--sigvelo-recipe-computer-nav-plane: var(--computer-nav-plane);
|
|
32
|
+
--sigvelo-recipe-computer-card-plane: var(--computer-card-plane);
|
|
33
|
+
--sigvelo-recipe-computer-window-lights-run: var(--computer-window-lights-run);
|
|
34
|
+
--sigvelo-recipe-computer-app-tile: var(--computer-app-tile);
|
|
35
|
+
--sigvelo-recipe-computer-home-row: var(--computer-home-row);
|
|
36
|
+
--sigvelo-recipe-computer-widget-radius: var(--computer-widget-radius);
|
|
37
|
+
--sigvelo-recipe-inset-group-background: var(--computer-card-plane);
|
|
38
|
+
--sigvelo-recipe-inset-group-shadow: var(--computer-card-elevation);
|
|
29
39
|
--computer-app-tile: 4rem; /* 63.4pt Home and Dock icon, ref 72px / 1.135 */
|
|
30
40
|
/* One Home cell: a 63.4pt tile and the 34pt band that carries its label.
|
|
31
41
|
Every Home row is this tall — widgets span two of them — so a row never
|
|
@@ -1762,3 +1772,21 @@
|
|
|
1762
1772
|
inline-size: 1.125em;
|
|
1763
1773
|
block-size: 0.875em;
|
|
1764
1774
|
}
|
|
1775
|
+
|
|
1776
|
+
/* The last status item: date then time, with figures that hold their width
|
|
1777
|
+
for a minute. A narrower bar keeps only the time, and the phone's status
|
|
1778
|
+
bar has its own. */
|
|
1779
|
+
.computer-clock {
|
|
1780
|
+
display: inline-flex;
|
|
1781
|
+
gap: var(--sigvelo-spacing-1-5);
|
|
1782
|
+
white-space: nowrap;
|
|
1783
|
+
font-variant-numeric: tabular-nums;
|
|
1784
|
+
}
|
|
1785
|
+
@container agent-computer (48rem < inline-size <= 64rem) {
|
|
1786
|
+
.computer-clock > span:first-child {
|
|
1787
|
+
display: none;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
:where(.agent-computer[data-phone]) .computer-clock {
|
|
1791
|
+
display: none;
|
|
1792
|
+
}
|
package/dist/styles/base.css
CHANGED
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
.chain-of-thought__search-result,
|
|
45
45
|
.chain-of-thought__step-indicator,
|
|
46
46
|
.codex-model-selector__trigger,
|
|
47
|
+
.computer-automations__agenda-mark,
|
|
48
|
+
:where(.agent-computer[data-phone]) .computer-automations__location-bar,
|
|
49
|
+
.computer-calendar__event-dot,
|
|
50
|
+
.computer-calendar__event-indicator,
|
|
51
|
+
.computer-calendar__number,
|
|
47
52
|
.empty-state__icon,
|
|
48
53
|
.execution-board__step .react-flow__handle,
|
|
49
54
|
.first-run-pin__omnibox,
|
|
@@ -94,6 +99,7 @@
|
|
|
94
99
|
:where(.agent-computer__window-control)::before,
|
|
95
100
|
:where(.browser-replay .replayer-mouse)::after,
|
|
96
101
|
:where(.codex-model-selector__trigger)::before,
|
|
102
|
+
:where(.computer-viewer__home-indicator)::before,
|
|
97
103
|
:where(.github-motion-mark)::before,
|
|
98
104
|
:where(.github-motion-mark)::after,
|
|
99
105
|
:where(.manager-office__employee-nav)::-webkit-scrollbar-thumb,
|
|
@@ -129,9 +129,11 @@
|
|
|
129
129
|
color: inherit;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
/* Centered under the centered choices it answers. */
|
|
132
133
|
.chatgpt-sign-in__error {
|
|
133
134
|
margin: 0;
|
|
134
135
|
color: var(--sigvelo-color-danger-text);
|
|
136
|
+
text-align: center;
|
|
135
137
|
font-size: var(--sigvelo-text-sm);
|
|
136
138
|
}
|
|
137
139
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Tahoe's app icon: one squircle tile under a first-party mark. */
|
|
2
|
+
.computer-app-tile,
|
|
3
|
+
.computer-app-calendar {
|
|
4
|
+
border-radius: var(--sigvelo-radius-squircle);
|
|
5
|
+
box-shadow: var(--sigvelo-elevation-raised);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.computer-app-tile {
|
|
9
|
+
display: grid;
|
|
10
|
+
place-items: center;
|
|
11
|
+
inline-size: 100%;
|
|
12
|
+
block-size: 100%;
|
|
13
|
+
background: light-dark(#fff, #2c2c2e);
|
|
14
|
+
forced-color-adjust: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.computer-app-tile > :is(svg, img) {
|
|
18
|
+
inline-size: 70%;
|
|
19
|
+
block-size: 70%;
|
|
20
|
+
}
|