@mcp-b/react-components 0.68.0 → 0.69.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-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
- package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
- package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
- package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
- package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
- package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
- package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
- package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
- package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
- package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
- package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
- package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
- package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
- package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
- package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
- package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
- package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
- package/dist/components/agents-sdk/ComputerFiles.js +337 -316
- package/dist/components/agents-sdk/ComputerHome.js +1 -1
- package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
- package/dist/components/agents-sdk/ComputerLayout.js +66 -0
- package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
- package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
- package/dist/components/agents-sdk/ComputerScreen.js +49 -36
- package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
- package/dist/components/agents-sdk/ComputerSettings.js +92 -72
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +197 -190
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
- package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
- package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/extension/FirstRunSetup.d.ts +2 -2
- package/dist/minute-clock-CXpRGCMF.js +35 -0
- package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
- package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
- package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
- package/package.json +2 -2
|
@@ -2,16 +2,17 @@ import { Z as PlusIcon, g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon
|
|
|
2
2
|
import { Checkbox } from "../foundations/Checkbox.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { n as useAgentComputerActions } from "../../AgentComputer-
|
|
5
|
+
import { n as useAgentComputerActions } from "../../AgentComputer-CFJxjMFE.js";
|
|
6
6
|
import { Menubar } from "../foundations/Menubar.js";
|
|
7
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
|
+
import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
|
|
8
9
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
9
10
|
import { formatThinkExecutionStatus, getThinkExecutionRunId, getThinkExecutionRunStatus, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
10
11
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
11
12
|
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
12
13
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
13
14
|
import { n as useComputerAutomationsContext, r as zonedFormat } from "../../automations-host-DPORjdc7.js";
|
|
14
|
-
import { t as computerAppParts } from "../../parts-
|
|
15
|
+
import { t as computerAppParts } from "../../parts-CPVz9l31.js";
|
|
15
16
|
import { SearchField } from "../foundations/SearchField.js";
|
|
16
17
|
import { formatThinkScheduleTimeZone } from "./ThinkSchedule.js";
|
|
17
18
|
import { Popover } from "../foundations/Popover.js";
|
|
@@ -794,12 +795,12 @@ function _temp(entry_0) {
|
|
|
794
795
|
/** Today's date on Calendar's paper, from the host's clock. */
|
|
795
796
|
function CalendarIcon() {
|
|
796
797
|
const $ = c(13);
|
|
797
|
-
const {
|
|
798
|
+
const { clock } = useComputerAutomationsContext();
|
|
798
799
|
let t0;
|
|
799
|
-
if ($[0] !==
|
|
800
|
-
t0 = zonedFormat(
|
|
801
|
-
$[0] =
|
|
802
|
-
$[1] =
|
|
800
|
+
if ($[0] !== clock.now || $[1] !== clock.timeZone) {
|
|
801
|
+
t0 = zonedFormat(clock.timeZone, { weekday: "short" }).format(clock.now);
|
|
802
|
+
$[0] = clock.now;
|
|
803
|
+
$[1] = clock.timeZone;
|
|
803
804
|
$[2] = t0;
|
|
804
805
|
} else t0 = $[2];
|
|
805
806
|
let t1;
|
|
@@ -809,10 +810,10 @@ function CalendarIcon() {
|
|
|
809
810
|
$[4] = t1;
|
|
810
811
|
} else t1 = $[4];
|
|
811
812
|
let t2;
|
|
812
|
-
if ($[5] !==
|
|
813
|
-
t2 = zonedFormat(
|
|
814
|
-
$[5] =
|
|
815
|
-
$[6] =
|
|
813
|
+
if ($[5] !== clock.now || $[6] !== clock.timeZone) {
|
|
814
|
+
t2 = zonedFormat(clock.timeZone, { day: "numeric" }).format(clock.now);
|
|
815
|
+
$[5] = clock.now;
|
|
816
|
+
$[6] = clock.timeZone;
|
|
816
817
|
$[7] = t2;
|
|
817
818
|
} else t2 = $[7];
|
|
818
819
|
let t3;
|
|
@@ -840,12 +841,12 @@ function CalendarIcon() {
|
|
|
840
841
|
*/
|
|
841
842
|
function useCalendarModel() {
|
|
842
843
|
const $ = c(71);
|
|
843
|
-
const { host, calendar } = useComputerAutomationsContext();
|
|
844
|
+
const { host, clock: hostClock, calendar } = useComputerAutomationsContext();
|
|
844
845
|
const { openApp } = useAgentComputerActions();
|
|
845
846
|
let t0;
|
|
846
847
|
if ($[0] !== openApp) {
|
|
847
848
|
t0 = (shown) => void shown.then((ok) => {
|
|
848
|
-
if (ok) openApp(
|
|
849
|
+
if (ok) openApp(COMPUTER_APP_IDS.automations);
|
|
849
850
|
});
|
|
850
851
|
$[0] = openApp;
|
|
851
852
|
$[1] = t0;
|
|
@@ -860,7 +861,7 @@ function useCalendarModel() {
|
|
|
860
861
|
} else t1 = $[4];
|
|
861
862
|
const onCreateSchedule = t1;
|
|
862
863
|
const { schedules } = host;
|
|
863
|
-
const clock = calendarClock(
|
|
864
|
+
const clock = calendarClock(hostClock.timeZone, hostClock.now);
|
|
864
865
|
const [t2, setDate] = useState({
|
|
865
866
|
selected: clock.today,
|
|
866
867
|
month: clock.today
|
|
@@ -1326,7 +1327,7 @@ function _temp2(entry_1) {
|
|
|
1326
1327
|
}
|
|
1327
1328
|
/** Calendar in the Dock. It reads the schedules and runs `ComputerAutomations.Host` keeps. */
|
|
1328
1329
|
const ComputerCalendar = { app: {
|
|
1329
|
-
id:
|
|
1330
|
+
id: COMPUTER_APP_IDS.calendar,
|
|
1330
1331
|
label: "Calendar",
|
|
1331
1332
|
launcher: "favorite",
|
|
1332
1333
|
icon: /* @__PURE__ */ jsx(CalendarIcon, {}),
|
|
@@ -104,7 +104,7 @@ function customOption(image) {
|
|
|
104
104
|
}
|
|
105
105
|
/** The desktop background with a person's own image: `AgentComputer`'s wallpaper and Settings' fields. */
|
|
106
106
|
function useComputerWallpaper(t0) {
|
|
107
|
-
const $ = c(
|
|
107
|
+
const $ = c(83);
|
|
108
108
|
const { wallpaper, onChange, hint } = t0;
|
|
109
109
|
const uploadButtonId = useId();
|
|
110
110
|
const uploadInput = useRef(null);
|
|
@@ -182,57 +182,72 @@ function useComputerWallpaper(t0) {
|
|
|
182
182
|
t6 = $[12];
|
|
183
183
|
}
|
|
184
184
|
useEffect(t5, t6);
|
|
185
|
+
const customLabel = custom?.label;
|
|
186
|
+
const customFit = custom?.fit;
|
|
187
|
+
const customX = custom?.x;
|
|
188
|
+
const customY = custom?.y;
|
|
185
189
|
let t7;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
} else
|
|
201
|
-
|
|
202
|
-
wallpapers = $[16];
|
|
203
|
-
}
|
|
204
|
-
const selected = t7;
|
|
190
|
+
if ($[13] !== customFit || $[14] !== customLabel || $[15] !== customUrl || $[16] !== customX || $[17] !== customY) {
|
|
191
|
+
t7 = customUrl !== void 0 && customLabel !== void 0 && customFit !== void 0 && customX !== void 0 && customY !== void 0 ? [...COMPUTER_WALLPAPERS, customOption({
|
|
192
|
+
dataUrl: customUrl,
|
|
193
|
+
label: customLabel,
|
|
194
|
+
fit: customFit,
|
|
195
|
+
x: customX,
|
|
196
|
+
y: customY
|
|
197
|
+
})] : COMPUTER_WALLPAPERS;
|
|
198
|
+
$[13] = customFit;
|
|
199
|
+
$[14] = customLabel;
|
|
200
|
+
$[15] = customUrl;
|
|
201
|
+
$[16] = customX;
|
|
202
|
+
$[17] = customY;
|
|
203
|
+
$[18] = t7;
|
|
204
|
+
} else t7 = $[18];
|
|
205
|
+
const wallpapers = t7;
|
|
205
206
|
let t8;
|
|
206
|
-
if ($[19] !==
|
|
207
|
-
|
|
207
|
+
if ($[19] !== value || $[20] !== wallpapers) {
|
|
208
|
+
let t9;
|
|
209
|
+
if ($[22] !== value) {
|
|
210
|
+
t9 = (wallpaper_0) => wallpaper_0.value === value;
|
|
211
|
+
$[22] = value;
|
|
212
|
+
$[23] = t9;
|
|
213
|
+
} else t9 = $[23];
|
|
214
|
+
t8 = wallpapers.find(t9);
|
|
215
|
+
$[19] = value;
|
|
216
|
+
$[20] = wallpapers;
|
|
217
|
+
$[21] = t8;
|
|
218
|
+
} else t8 = $[21];
|
|
219
|
+
const selected = t8;
|
|
220
|
+
let t9;
|
|
221
|
+
if ($[24] !== onChange) {
|
|
222
|
+
t9 = function save(next, image_0) {
|
|
208
223
|
setPosition(null);
|
|
209
224
|
onChange({
|
|
210
225
|
value: next,
|
|
211
226
|
custom: image_0
|
|
212
227
|
});
|
|
213
228
|
};
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
} else
|
|
217
|
-
const save =
|
|
218
|
-
let
|
|
219
|
-
if ($[
|
|
220
|
-
|
|
229
|
+
$[24] = onChange;
|
|
230
|
+
$[25] = t9;
|
|
231
|
+
} else t9 = $[25];
|
|
232
|
+
const save = t9;
|
|
233
|
+
let t10;
|
|
234
|
+
if ($[26] !== save || $[27] !== saved || $[28] !== wallpapers) {
|
|
235
|
+
t10 = function select(next_0) {
|
|
221
236
|
if (!wallpapers.some((wallpaper_1) => wallpaper_1.value === next_0)) return;
|
|
222
237
|
uploadRevision.current = uploadRevision.current + 1;
|
|
223
238
|
setUploading(false);
|
|
224
239
|
save(next_0, saved);
|
|
225
240
|
};
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
} else
|
|
231
|
-
const select =
|
|
232
|
-
let
|
|
233
|
-
if ($[
|
|
234
|
-
|
|
235
|
-
const persist =
|
|
241
|
+
$[26] = save;
|
|
242
|
+
$[27] = saved;
|
|
243
|
+
$[28] = wallpapers;
|
|
244
|
+
$[29] = t10;
|
|
245
|
+
} else t10 = $[29];
|
|
246
|
+
const select = t10;
|
|
247
|
+
let t11;
|
|
248
|
+
if ($[30] !== save || $[31] !== saved) {
|
|
249
|
+
t11 = function updateCustom(patch, t12) {
|
|
250
|
+
const persist = t12 === void 0 ? true : t12;
|
|
236
251
|
if (!saved) return;
|
|
237
252
|
if (persist) save("custom", {
|
|
238
253
|
...saved,
|
|
@@ -244,14 +259,14 @@ function useComputerWallpaper(t0) {
|
|
|
244
259
|
dataUrl: saved.dataUrl
|
|
245
260
|
}));
|
|
246
261
|
};
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else
|
|
251
|
-
const updateCustom =
|
|
252
|
-
let
|
|
253
|
-
if ($[
|
|
254
|
-
|
|
262
|
+
$[30] = save;
|
|
263
|
+
$[31] = saved;
|
|
264
|
+
$[32] = t11;
|
|
265
|
+
} else t11 = $[32];
|
|
266
|
+
const updateCustom = t11;
|
|
267
|
+
let t12;
|
|
268
|
+
if ($[33] !== save) {
|
|
269
|
+
t12 = async function upload(file) {
|
|
255
270
|
const revision = uploadRevision.current = uploadRevision.current + 1;
|
|
256
271
|
setUploading(true);
|
|
257
272
|
setUploadError("");
|
|
@@ -261,111 +276,111 @@ function useComputerWallpaper(t0) {
|
|
|
261
276
|
else setUploadError(prepared.error instanceof Error ? prepared.error.message : "This image couldn’t be opened.");
|
|
262
277
|
setUploading(false);
|
|
263
278
|
};
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
} else
|
|
267
|
-
const upload =
|
|
268
|
-
const
|
|
269
|
-
let t13;
|
|
270
|
-
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
271
|
-
t13 = () => uploadInput.current?.click();
|
|
272
|
-
$[30] = t13;
|
|
273
|
-
} else t13 = $[30];
|
|
279
|
+
$[33] = save;
|
|
280
|
+
$[34] = t12;
|
|
281
|
+
} else t12 = $[34];
|
|
282
|
+
const upload = t12;
|
|
283
|
+
const t13 = `${helpId}${uploadError ? ` ${errorId}` : ""}`;
|
|
274
284
|
let t14;
|
|
275
|
-
if ($[
|
|
276
|
-
t14 =
|
|
285
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
286
|
+
t14 = () => uploadInput.current?.click();
|
|
287
|
+
$[35] = t14;
|
|
288
|
+
} else t14 = $[35];
|
|
289
|
+
let t15;
|
|
290
|
+
if ($[36] !== t13 || $[37] !== uploadButtonId || $[38] !== uploading) {
|
|
291
|
+
t15 = /* @__PURE__ */ jsx(Button, {
|
|
277
292
|
id: uploadButtonId,
|
|
278
293
|
size: "xs",
|
|
279
294
|
variant: "surface",
|
|
280
295
|
color: "neutral",
|
|
281
296
|
disabled: uploading,
|
|
282
|
-
"aria-describedby":
|
|
283
|
-
onClick:
|
|
297
|
+
"aria-describedby": t13,
|
|
298
|
+
onClick: t14,
|
|
284
299
|
children: "Use your own image…"
|
|
285
300
|
});
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
} else
|
|
291
|
-
let
|
|
292
|
-
if ($[
|
|
293
|
-
|
|
301
|
+
$[36] = t13;
|
|
302
|
+
$[37] = uploadButtonId;
|
|
303
|
+
$[38] = uploading;
|
|
304
|
+
$[39] = t15;
|
|
305
|
+
} else t15 = $[39];
|
|
306
|
+
let t16;
|
|
307
|
+
if ($[40] !== uploading) {
|
|
308
|
+
t16 = uploading ? /* @__PURE__ */ jsx("p", {
|
|
294
309
|
role: "status",
|
|
295
310
|
children: "Preparing background…"
|
|
296
311
|
}) : null;
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
} else
|
|
300
|
-
let
|
|
301
|
-
if ($[
|
|
302
|
-
|
|
312
|
+
$[40] = uploading;
|
|
313
|
+
$[41] = t16;
|
|
314
|
+
} else t16 = $[41];
|
|
315
|
+
let t17;
|
|
316
|
+
if ($[42] !== errorId || $[43] !== uploadError) {
|
|
317
|
+
t17 = uploadError ? /* @__PURE__ */ jsx("p", {
|
|
303
318
|
id: errorId,
|
|
304
319
|
role: "alert",
|
|
305
320
|
children: uploadError
|
|
306
321
|
}) : null;
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
} else
|
|
311
|
-
let
|
|
312
|
-
if ($[
|
|
313
|
-
|
|
314
|
-
t14,
|
|
322
|
+
$[42] = errorId;
|
|
323
|
+
$[43] = uploadError;
|
|
324
|
+
$[44] = t17;
|
|
325
|
+
} else t17 = $[44];
|
|
326
|
+
let t18;
|
|
327
|
+
if ($[45] !== t15 || $[46] !== t16 || $[47] !== t17) {
|
|
328
|
+
t18 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
315
329
|
t15,
|
|
316
|
-
t16
|
|
330
|
+
t16,
|
|
331
|
+
t17
|
|
317
332
|
] });
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
} else
|
|
323
|
-
const uploadControls =
|
|
324
|
-
const
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
if ($[
|
|
328
|
-
|
|
333
|
+
$[45] = t15;
|
|
334
|
+
$[46] = t16;
|
|
335
|
+
$[47] = t17;
|
|
336
|
+
$[48] = t18;
|
|
337
|
+
} else t18 = $[48];
|
|
338
|
+
const uploadControls = t18;
|
|
339
|
+
const t19 = Boolean(uploadError);
|
|
340
|
+
const t20 = `${helpId}${uploadError ? ` ${errorId}` : ""}`;
|
|
341
|
+
let t21;
|
|
342
|
+
if ($[49] !== upload) {
|
|
343
|
+
t21 = (event) => {
|
|
329
344
|
const file_0 = event.currentTarget.files?.[0];
|
|
330
345
|
event.currentTarget.value = "";
|
|
331
346
|
if (file_0) upload(file_0);
|
|
332
347
|
};
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
} else
|
|
336
|
-
let
|
|
337
|
-
if ($[
|
|
338
|
-
|
|
348
|
+
$[49] = upload;
|
|
349
|
+
$[50] = t21;
|
|
350
|
+
} else t21 = $[50];
|
|
351
|
+
let t22;
|
|
352
|
+
if ($[51] !== t19 || $[52] !== t20 || $[53] !== t21 || $[54] !== uploadButtonId || $[55] !== uploading) {
|
|
353
|
+
t22 = /* @__PURE__ */ jsx("input", {
|
|
339
354
|
ref: uploadInput,
|
|
340
355
|
hidden: true,
|
|
341
356
|
"aria-labelledby": uploadButtonId,
|
|
342
357
|
type: "file",
|
|
343
358
|
accept: "image/png,image/jpeg,image/webp",
|
|
344
359
|
disabled: uploading,
|
|
345
|
-
"aria-invalid":
|
|
346
|
-
"aria-describedby":
|
|
347
|
-
onChange:
|
|
360
|
+
"aria-invalid": t19,
|
|
361
|
+
"aria-describedby": t20,
|
|
362
|
+
onChange: t21
|
|
348
363
|
});
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
} else
|
|
356
|
-
let
|
|
357
|
-
if ($[
|
|
358
|
-
|
|
364
|
+
$[51] = t19;
|
|
365
|
+
$[52] = t20;
|
|
366
|
+
$[53] = t21;
|
|
367
|
+
$[54] = uploadButtonId;
|
|
368
|
+
$[55] = uploading;
|
|
369
|
+
$[56] = t22;
|
|
370
|
+
} else t22 = $[56];
|
|
371
|
+
let t23;
|
|
372
|
+
if ($[57] !== helpId) {
|
|
373
|
+
t23 = /* @__PURE__ */ jsx("p", {
|
|
359
374
|
id: helpId,
|
|
360
375
|
className: "sigvelo-visually-hidden",
|
|
361
376
|
children: "PNG, JPEG, or WebP, up to 10 MB. Images are dimmed to keep desktop labels readable."
|
|
362
377
|
});
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
} else
|
|
366
|
-
let
|
|
367
|
-
if ($[
|
|
368
|
-
|
|
378
|
+
$[57] = helpId;
|
|
379
|
+
$[58] = t23;
|
|
380
|
+
} else t23 = $[58];
|
|
381
|
+
let t24;
|
|
382
|
+
if ($[59] !== custom || $[60] !== save || $[61] !== updateCustom || $[62] !== uploadButtonId || $[63] !== value) {
|
|
383
|
+
t24 = custom ? /* @__PURE__ */ jsxs("section", {
|
|
369
384
|
className: "computer-wallpapers__custom",
|
|
370
385
|
"aria-label": "Custom background",
|
|
371
386
|
children: [value === "custom" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(RadioGroup.Root, {
|
|
@@ -429,73 +444,73 @@ function useComputerWallpaper(t0) {
|
|
|
429
444
|
})]
|
|
430
445
|
})]
|
|
431
446
|
}) : null;
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
} else
|
|
439
|
-
let
|
|
440
|
-
if ($[
|
|
441
|
-
|
|
447
|
+
$[59] = custom;
|
|
448
|
+
$[60] = save;
|
|
449
|
+
$[61] = updateCustom;
|
|
450
|
+
$[62] = uploadButtonId;
|
|
451
|
+
$[63] = value;
|
|
452
|
+
$[64] = t24;
|
|
453
|
+
} else t24 = $[64];
|
|
454
|
+
let t25;
|
|
455
|
+
if ($[65] !== hint) {
|
|
456
|
+
t25 = /* @__PURE__ */ jsx("p", {
|
|
442
457
|
className: "computer-wallpapers__hint",
|
|
443
458
|
role: "status",
|
|
444
459
|
children: hint
|
|
445
460
|
});
|
|
446
|
-
$[
|
|
447
|
-
$[61] = t24;
|
|
448
|
-
} else t24 = $[61];
|
|
449
|
-
let t25;
|
|
450
|
-
if ($[62] !== t21 || $[63] !== t22 || $[64] !== t23 || $[65] !== t24) {
|
|
451
|
-
t25 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
452
|
-
t21,
|
|
453
|
-
t22,
|
|
454
|
-
t23,
|
|
455
|
-
t24
|
|
456
|
-
] });
|
|
457
|
-
$[62] = t21;
|
|
458
|
-
$[63] = t22;
|
|
459
|
-
$[64] = t23;
|
|
460
|
-
$[65] = t24;
|
|
461
|
+
$[65] = hint;
|
|
461
462
|
$[66] = t25;
|
|
462
463
|
} else t25 = $[66];
|
|
463
|
-
const details = t25;
|
|
464
464
|
let t26;
|
|
465
|
-
if ($[67] !==
|
|
466
|
-
t26 = /* @__PURE__ */ jsxs(
|
|
465
|
+
if ($[67] !== t22 || $[68] !== t23 || $[69] !== t24 || $[70] !== t25) {
|
|
466
|
+
t26 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
467
|
+
t22,
|
|
468
|
+
t23,
|
|
469
|
+
t24,
|
|
470
|
+
t25
|
|
471
|
+
] });
|
|
472
|
+
$[67] = t22;
|
|
473
|
+
$[68] = t23;
|
|
474
|
+
$[69] = t24;
|
|
475
|
+
$[70] = t25;
|
|
476
|
+
$[71] = t26;
|
|
477
|
+
} else t26 = $[71];
|
|
478
|
+
const details = t26;
|
|
479
|
+
let t27;
|
|
480
|
+
if ($[72] !== details || $[73] !== uploadControls) {
|
|
481
|
+
t27 = /* @__PURE__ */ jsxs("div", {
|
|
467
482
|
className: "computer-wallpapers__controls",
|
|
468
483
|
children: [uploadControls, details]
|
|
469
484
|
});
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[69] = t26;
|
|
473
|
-
} else t26 = $[69];
|
|
474
|
-
let t27;
|
|
475
|
-
if ($[70] !== select || $[71] !== t26 || $[72] !== value || $[73] !== wallpapers) {
|
|
476
|
-
t27 = {
|
|
477
|
-
wallpapers,
|
|
478
|
-
wallpaper: value,
|
|
479
|
-
onWallpaperChange: select,
|
|
480
|
-
display: t26
|
|
481
|
-
};
|
|
482
|
-
$[70] = select;
|
|
483
|
-
$[71] = t26;
|
|
484
|
-
$[72] = value;
|
|
485
|
-
$[73] = wallpapers;
|
|
485
|
+
$[72] = details;
|
|
486
|
+
$[73] = uploadControls;
|
|
486
487
|
$[74] = t27;
|
|
487
488
|
} else t27 = $[74];
|
|
488
489
|
let t28;
|
|
489
|
-
if ($[75] !==
|
|
490
|
+
if ($[75] !== select || $[76] !== t27 || $[77] !== value || $[78] !== wallpapers) {
|
|
490
491
|
t28 = {
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
wallpapers,
|
|
493
|
+
wallpaper: value,
|
|
494
|
+
onWallpaperChange: select,
|
|
495
|
+
display: t27
|
|
493
496
|
};
|
|
494
|
-
$[75] =
|
|
497
|
+
$[75] = select;
|
|
495
498
|
$[76] = t27;
|
|
496
|
-
$[77] =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
+
$[77] = value;
|
|
500
|
+
$[78] = wallpapers;
|
|
501
|
+
$[79] = t28;
|
|
502
|
+
} else t28 = $[79];
|
|
503
|
+
let t29;
|
|
504
|
+
if ($[80] !== selected || $[81] !== t28) {
|
|
505
|
+
t29 = {
|
|
506
|
+
selected,
|
|
507
|
+
settings: t28
|
|
508
|
+
};
|
|
509
|
+
$[80] = selected;
|
|
510
|
+
$[81] = t28;
|
|
511
|
+
$[82] = t29;
|
|
512
|
+
} else t29 = $[82];
|
|
513
|
+
return t29;
|
|
499
514
|
}
|
|
500
515
|
function _temp2(error) {
|
|
501
516
|
return { error };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as WorkspaceSource } from "../../Workspace-
|
|
1
|
+
import { y as WorkspaceSource } from "../../Workspace-mZddFyvP.js";
|
|
2
2
|
import { FileInfo } from "@cloudflare/shell";
|
|
3
3
|
//#region src/components/agents-sdk/ComputerFileThumbnail.d.ts
|
|
4
4
|
export interface ComputerFileThumbnailProps {
|
|
@@ -9,7 +9,9 @@ export interface ComputerFileThumbnailProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* A desktop or Finder thumbnail drawn from the file itself, the way Finder
|
|
11
11
|
* draws one: an SVG shows as the image, a text file as a page of its text.
|
|
12
|
-
*
|
|
12
|
+
* Every other entry, and one whose read has not come back, draws its kind's
|
|
13
|
+
* generic folder or page. The file is read once it nears the viewport, under
|
|
14
|
+
* a key of its own version, so listing refreshes never read it again.
|
|
13
15
|
*/
|
|
14
|
-
export declare function ComputerFileThumbnail({ entry, source, sourceKey }: ComputerFileThumbnailProps): import("react").JSX.Element
|
|
16
|
+
export declare function ComputerFileThumbnail({ entry, source, sourceKey }: ComputerFileThumbnailProps): import("react").JSX.Element;
|
|
15
17
|
//#endregion
|