@mcp-b/react-components 0.68.0 → 0.70.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.
Files changed (71) hide show
  1. package/dist/{AgentComputer-BP9ixGGE.js → AgentComputer-CFJxjMFE.js} +32 -3
  2. package/dist/ComputerFileThumbnail-CXHy127c.js +393 -0
  3. package/dist/Context-DQDumCV8.js +918 -0
  4. package/dist/{ThinkSchedule-D4Ulsa0-.d.ts → ThinkSchedule-9nzxIoX1.d.ts} +1 -1
  5. package/dist/{Workspace-B9nuTfIi.d.ts → Workspace-mZddFyvP.d.ts} +7 -3
  6. package/dist/{WorkspaceAutomation-C0fghGLi.d.ts → WorkspaceAutomation-hwl6C1aX.d.ts} +2 -2
  7. package/dist/{WorkspaceBrowser-Dz48H-7X.d.ts → WorkspaceBrowser-CNVAKXXZ.d.ts} +4 -11
  8. package/dist/{WorkspaceBrowser-oBJv-Dac.js → WorkspaceBrowser-ojoZy0uO.js} +202 -210
  9. package/dist/{WorkspaceConcept-D46cYerS.d.ts → WorkspaceConcept-DqzfZWws.d.ts} +1 -1
  10. package/dist/{WorkspaceFileCommands-1s9Ol8CG.d.ts → WorkspaceFileCommands-CN2oVUzx.d.ts} +5 -2
  11. package/dist/{WorkspaceFileTransfer-BRD22nW-.d.ts → WorkspaceFileTransfer-D--dVla2.d.ts} +1 -1
  12. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  13. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  14. package/dist/components/agents-sdk/ComputerAppIds.d.ts +15 -0
  15. package/dist/components/agents-sdk/ComputerAppIds.js +14 -0
  16. package/dist/components/agents-sdk/ComputerAutomations.d.ts +23 -14
  17. package/dist/components/agents-sdk/ComputerAutomations.js +437 -354
  18. package/dist/components/agents-sdk/ComputerCalendar.js +16 -15
  19. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +186 -171
  20. package/dist/components/agents-sdk/ComputerFileThumbnail.d.ts +5 -3
  21. package/dist/components/agents-sdk/ComputerFileThumbnail.js +1 -132
  22. package/dist/components/agents-sdk/ComputerFiles.d.ts +4 -6
  23. package/dist/components/agents-sdk/ComputerFiles.js +337 -316
  24. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  25. package/dist/components/agents-sdk/ComputerLayout.d.ts +9 -0
  26. package/dist/components/agents-sdk/ComputerLayout.js +66 -0
  27. package/dist/components/agents-sdk/ComputerNotifications.js +60 -83
  28. package/dist/components/agents-sdk/ComputerScreen.d.ts +12 -6
  29. package/dist/components/agents-sdk/ComputerScreen.js +49 -36
  30. package/dist/components/agents-sdk/ComputerSettings.d.ts +10 -4
  31. package/dist/components/agents-sdk/ComputerSettings.js +92 -72
  32. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  33. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  34. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +2 -2
  35. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  36. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  37. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  38. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  39. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  40. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  41. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  42. package/dist/components/agents-sdk/Workspace.js +197 -190
  43. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  44. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  45. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  46. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  47. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  48. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  49. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +6 -6
  50. package/dist/components/agents-sdk/WorkspaceDesktop.js +126 -101
  51. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -10
  52. package/dist/components/agents-sdk/WorkspaceExplorer.js +67 -71
  53. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +1 -1
  54. package/dist/components/agents-sdk/WorkspaceFileCommands.js +11 -6
  55. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +1 -1
  56. package/dist/components/agents-sdk/WorkspaceLive.d.ts +1 -1
  57. package/dist/components/agents-sdk/WorkspaceLive.js +7 -5
  58. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +1 -1
  59. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  60. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  61. package/dist/components/ai-sdk/Context.js +1 -842
  62. package/dist/components/ai-sdk/Plan.d.ts +33 -9
  63. package/dist/components/ai-sdk/Plan.js +336 -107
  64. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  65. package/dist/minute-clock-CXpRGCMF.js +35 -0
  66. package/dist/{parts-RXV6GGdB.js → parts-CPVz9l31.js} +1 -1
  67. package/dist/styles/plan.css +160 -23
  68. package/dist/{workspace-concept-panel-BDTBISNO.d.ts → workspace-concept-panel-D1czupvi.d.ts} +1 -1
  69. package/dist/{workspace-quick-look-9V-UFpjj.js → workspace-quick-look-DODjsfhH.js} +79 -251
  70. package/package.json +2 -2
  71. package/dist/progress-ring-BO649JA9.js +0 -79
@@ -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-BP9ixGGE.js";
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-RXV6GGdB.js";
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 { host } = useComputerAutomationsContext();
798
+ const { clock } = useComputerAutomationsContext();
798
799
  let t0;
799
- if ($[0] !== host.now || $[1] !== host.timeZone) {
800
- t0 = zonedFormat(host.timeZone, { weekday: "short" }).format(host.now);
801
- $[0] = host.now;
802
- $[1] = host.timeZone;
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] !== host.now || $[6] !== host.timeZone) {
813
- t2 = zonedFormat(host.timeZone, { day: "numeric" }).format(host.now);
814
- $[5] = host.now;
815
- $[6] = host.timeZone;
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("automations");
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(host.timeZone, host.now);
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: "calendar",
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(78);
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
- let wallpapers;
187
- if ($[13] !== custom || $[14] !== value) {
188
- wallpapers = custom ? [...COMPUTER_WALLPAPERS, customOption(custom)] : COMPUTER_WALLPAPERS;
189
- let t8;
190
- if ($[17] !== value) {
191
- t8 = (wallpaper_0) => wallpaper_0.value === value;
192
- $[17] = value;
193
- $[18] = t8;
194
- } else t8 = $[18];
195
- t7 = wallpapers.find(t8);
196
- $[13] = custom;
197
- $[14] = value;
198
- $[15] = t7;
199
- $[16] = wallpapers;
200
- } else {
201
- t7 = $[15];
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] !== onChange) {
207
- t8 = function save(next, image_0) {
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
- $[19] = onChange;
215
- $[20] = t8;
216
- } else t8 = $[20];
217
- const save = t8;
218
- let t9;
219
- if ($[21] !== save || $[22] !== saved || $[23] !== wallpapers) {
220
- t9 = function select(next_0) {
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
- $[21] = save;
227
- $[22] = saved;
228
- $[23] = wallpapers;
229
- $[24] = t9;
230
- } else t9 = $[24];
231
- const select = t9;
232
- let t10;
233
- if ($[25] !== save || $[26] !== saved) {
234
- t10 = function updateCustom(patch, t11) {
235
- const persist = t11 === void 0 ? true : t11;
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
- $[25] = save;
248
- $[26] = saved;
249
- $[27] = t10;
250
- } else t10 = $[27];
251
- const updateCustom = t10;
252
- let t11;
253
- if ($[28] !== save) {
254
- t11 = async function upload(file) {
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
- $[28] = save;
265
- $[29] = t11;
266
- } else t11 = $[29];
267
- const upload = t11;
268
- const t12 = `${helpId}${uploadError ? ` ${errorId}` : ""}`;
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 ($[31] !== t12 || $[32] !== uploadButtonId || $[33] !== uploading) {
276
- t14 = /* @__PURE__ */ jsx(Button, {
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": t12,
283
- onClick: t13,
297
+ "aria-describedby": t13,
298
+ onClick: t14,
284
299
  children: "Use your own image…"
285
300
  });
286
- $[31] = t12;
287
- $[32] = uploadButtonId;
288
- $[33] = uploading;
289
- $[34] = t14;
290
- } else t14 = $[34];
291
- let t15;
292
- if ($[35] !== uploading) {
293
- t15 = uploading ? /* @__PURE__ */ jsx("p", {
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
- $[35] = uploading;
298
- $[36] = t15;
299
- } else t15 = $[36];
300
- let t16;
301
- if ($[37] !== errorId || $[38] !== uploadError) {
302
- t16 = uploadError ? /* @__PURE__ */ jsx("p", {
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
- $[37] = errorId;
308
- $[38] = uploadError;
309
- $[39] = t16;
310
- } else t16 = $[39];
311
- let t17;
312
- if ($[40] !== t14 || $[41] !== t15 || $[42] !== t16) {
313
- t17 = /* @__PURE__ */ jsxs(Fragment, { children: [
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
- $[40] = t14;
319
- $[41] = t15;
320
- $[42] = t16;
321
- $[43] = t17;
322
- } else t17 = $[43];
323
- const uploadControls = t17;
324
- const t18 = Boolean(uploadError);
325
- const t19 = `${helpId}${uploadError ? ` ${errorId}` : ""}`;
326
- let t20;
327
- if ($[44] !== upload) {
328
- t20 = (event) => {
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
- $[44] = upload;
334
- $[45] = t20;
335
- } else t20 = $[45];
336
- let t21;
337
- if ($[46] !== t18 || $[47] !== t19 || $[48] !== t20 || $[49] !== uploadButtonId || $[50] !== uploading) {
338
- t21 = /* @__PURE__ */ jsx("input", {
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": t18,
346
- "aria-describedby": t19,
347
- onChange: t20
360
+ "aria-invalid": t19,
361
+ "aria-describedby": t20,
362
+ onChange: t21
348
363
  });
349
- $[46] = t18;
350
- $[47] = t19;
351
- $[48] = t20;
352
- $[49] = uploadButtonId;
353
- $[50] = uploading;
354
- $[51] = t21;
355
- } else t21 = $[51];
356
- let t22;
357
- if ($[52] !== helpId) {
358
- t22 = /* @__PURE__ */ jsx("p", {
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
- $[52] = helpId;
364
- $[53] = t22;
365
- } else t22 = $[53];
366
- let t23;
367
- if ($[54] !== custom || $[55] !== save || $[56] !== updateCustom || $[57] !== uploadButtonId || $[58] !== value) {
368
- t23 = custom ? /* @__PURE__ */ jsxs("section", {
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
- $[54] = custom;
433
- $[55] = save;
434
- $[56] = updateCustom;
435
- $[57] = uploadButtonId;
436
- $[58] = value;
437
- $[59] = t23;
438
- } else t23 = $[59];
439
- let t24;
440
- if ($[60] !== hint) {
441
- t24 = /* @__PURE__ */ jsx("p", {
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
- $[60] = hint;
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] !== details || $[68] !== uploadControls) {
466
- t26 = /* @__PURE__ */ jsxs("div", {
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
- $[67] = details;
471
- $[68] = uploadControls;
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] !== selected || $[76] !== t27) {
490
+ if ($[75] !== select || $[76] !== t27 || $[77] !== value || $[78] !== wallpapers) {
490
491
  t28 = {
491
- selected,
492
- settings: t27
492
+ wallpapers,
493
+ wallpaper: value,
494
+ onWallpaperChange: select,
495
+ display: t27
493
496
  };
494
- $[75] = selected;
497
+ $[75] = select;
495
498
  $[76] = t27;
496
- $[77] = t28;
497
- } else t28 = $[77];
498
- return t28;
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-B9nuTfIi.js";
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
- * Other files draw nothing and keep their type's icon.
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 | null;
16
+ export declare function ComputerFileThumbnail({ entry, source, sourceKey }: ComputerFileThumbnailProps): import("react").JSX.Element;
15
17
  //#endregion