@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
|
@@ -83,8 +83,16 @@ function workspaceFileQueryPrefix(sourceKey, root) {
|
|
|
83
83
|
function workspaceFileQueryKey(sourceKey, root, requestedPath) {
|
|
84
84
|
return [...workspaceFileQueryPrefix(sourceKey, root), requestedPath];
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
/**
|
|
87
|
+
* The source's summary. It does not depend on the root and each read is a
|
|
88
|
+
* whole-workspace aggregate, so every root of one source shares it.
|
|
89
|
+
*/
|
|
90
|
+
function workspaceInfoQueryKey(sourceKey) {
|
|
91
|
+
return [
|
|
92
|
+
"workspace",
|
|
93
|
+
sourceKey,
|
|
94
|
+
"info"
|
|
95
|
+
];
|
|
88
96
|
}
|
|
89
97
|
function workspaceFileVersion(target) {
|
|
90
98
|
return {
|
|
@@ -121,9 +129,9 @@ function workspaceDirectoryQueryOptions(source, sourceKey, root, path) {
|
|
|
121
129
|
});
|
|
122
130
|
}
|
|
123
131
|
/** Shared workspace-summary options for workspace components and route loaders. */
|
|
124
|
-
function workspaceInfoQueryOptions(source, sourceKey
|
|
132
|
+
function workspaceInfoQueryOptions(source, sourceKey) {
|
|
125
133
|
return queryOptions({
|
|
126
|
-
queryKey: workspaceInfoQueryKey(sourceKey
|
|
134
|
+
queryKey: workspaceInfoQueryKey(sourceKey),
|
|
127
135
|
queryFn: async ({ signal }) => {
|
|
128
136
|
const info = await source.getWorkspaceInfo();
|
|
129
137
|
throwIfAborted(signal);
|
|
@@ -286,7 +294,7 @@ function createDirectoryListingStore(queryClient, sourceKey, root) {
|
|
|
286
294
|
* selection, while this hook only keeps local tree expansion state.
|
|
287
295
|
*/
|
|
288
296
|
function useWorkspace(t0) {
|
|
289
|
-
const $ = c(
|
|
297
|
+
const $ = c(143);
|
|
290
298
|
const { source, sourceKey, root: t1, selectedPath, onSelectedPathChange, resolveFileAsset, maxInlineAssetBytes: t2 } = t0;
|
|
291
299
|
const root = t1 === void 0 ? "/" : t1;
|
|
292
300
|
const maxInlineAssetBytes = t2 === void 0 ? DEFAULT_MAX_INLINE_ASSET_BYTES : t2;
|
|
@@ -351,145 +359,144 @@ function useWorkspace(t0) {
|
|
|
351
359
|
} else t8 = $[20];
|
|
352
360
|
const directoryQueries = useQueries(t8);
|
|
353
361
|
let t9;
|
|
354
|
-
if ($[21] !==
|
|
355
|
-
t9 = workspaceInfoQueryOptions(source, sourceKey
|
|
356
|
-
$[21] =
|
|
357
|
-
$[22] =
|
|
358
|
-
$[23] =
|
|
359
|
-
|
|
360
|
-
} else t9 = $[24];
|
|
362
|
+
if ($[21] !== source || $[22] !== sourceKey) {
|
|
363
|
+
t9 = workspaceInfoQueryOptions(source, sourceKey);
|
|
364
|
+
$[21] = source;
|
|
365
|
+
$[22] = sourceKey;
|
|
366
|
+
$[23] = t9;
|
|
367
|
+
} else t9 = $[23];
|
|
361
368
|
const infoQuery = useQuery(t9);
|
|
362
369
|
const t10 = selectedPath ?? root;
|
|
363
370
|
let t11;
|
|
364
|
-
if ($[
|
|
371
|
+
if ($[24] !== root || $[25] !== source || $[26] !== sourceKey || $[27] !== t10) {
|
|
365
372
|
t11 = workspaceFileStatQueryOptions(source, sourceKey, root, t10);
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
} else t11 = $[
|
|
373
|
+
$[24] = root;
|
|
374
|
+
$[25] = source;
|
|
375
|
+
$[26] = sourceKey;
|
|
376
|
+
$[27] = t10;
|
|
377
|
+
$[28] = t11;
|
|
378
|
+
} else t11 = $[28];
|
|
372
379
|
const t12 = selectedPath !== null;
|
|
373
380
|
let t13;
|
|
374
|
-
if ($[
|
|
381
|
+
if ($[29] !== t11 || $[30] !== t12) {
|
|
375
382
|
t13 = {
|
|
376
383
|
...t11,
|
|
377
384
|
enabled: t12
|
|
378
385
|
};
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
} else t13 = $[
|
|
386
|
+
$[29] = t11;
|
|
387
|
+
$[30] = t12;
|
|
388
|
+
$[31] = t13;
|
|
389
|
+
} else t13 = $[31];
|
|
383
390
|
const statQuery = useQuery(t13);
|
|
384
391
|
const target = selectedPath === null ? void 0 : statQuery.data;
|
|
385
392
|
const statSettled = target !== void 0 && statQuery.isSuccess && !statQuery.isFetching;
|
|
386
393
|
let t14;
|
|
387
|
-
if ($[
|
|
394
|
+
if ($[32] !== root || $[33] !== selectedPath || $[34] !== target) {
|
|
388
395
|
t14 = target ?? {
|
|
389
396
|
requestedPath: selectedPath ?? root,
|
|
390
397
|
readPath: selectedPath ?? root,
|
|
391
398
|
info: INACTIVE_FILE_INFO,
|
|
392
399
|
media: null
|
|
393
400
|
};
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
} else t14 = $[
|
|
401
|
+
$[32] = root;
|
|
402
|
+
$[33] = selectedPath;
|
|
403
|
+
$[34] = target;
|
|
404
|
+
$[35] = t14;
|
|
405
|
+
} else t14 = $[35];
|
|
399
406
|
const queryTarget = t14;
|
|
400
407
|
let t15;
|
|
401
|
-
if ($[
|
|
408
|
+
if ($[36] !== target) {
|
|
402
409
|
t15 = target ? isWorkspaceTextPath(target.readPath, target.info.mimeType) : false;
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
} else t15 = $[
|
|
410
|
+
$[36] = target;
|
|
411
|
+
$[37] = t15;
|
|
412
|
+
} else t15 = $[37];
|
|
406
413
|
const targetIsText = t15;
|
|
407
414
|
const t16 = resolveFileAsset ?? INACTIVE_FILE_ASSET_RESOLVER;
|
|
408
415
|
let t17;
|
|
409
|
-
if ($[
|
|
416
|
+
if ($[38] !== queryTarget || $[39] !== root || $[40] !== sourceKey || $[41] !== t16) {
|
|
410
417
|
t17 = workspaceFileAssetQueryOptions(sourceKey, root, queryTarget, t16);
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
} else t17 = $[
|
|
418
|
+
$[38] = queryTarget;
|
|
419
|
+
$[39] = root;
|
|
420
|
+
$[40] = sourceKey;
|
|
421
|
+
$[41] = t16;
|
|
422
|
+
$[42] = t17;
|
|
423
|
+
} else t17 = $[42];
|
|
417
424
|
const t18 = statSettled && resolveFileAsset !== void 0;
|
|
418
425
|
let t19;
|
|
419
|
-
if ($[
|
|
426
|
+
if ($[43] !== t17 || $[44] !== t18) {
|
|
420
427
|
t19 = {
|
|
421
428
|
...t17,
|
|
422
429
|
enabled: t18
|
|
423
430
|
};
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
} else t19 = $[
|
|
431
|
+
$[43] = t17;
|
|
432
|
+
$[44] = t18;
|
|
433
|
+
$[45] = t19;
|
|
434
|
+
} else t19 = $[45];
|
|
428
435
|
const assetQuery = useQuery(t19);
|
|
429
436
|
const resolvedAsset = assetQuery.data ?? null;
|
|
430
437
|
const resolverSettled = !resolveFileAsset || assetQuery.isSuccess && !assetQuery.isFetching;
|
|
431
438
|
let t20;
|
|
432
|
-
if ($[
|
|
439
|
+
if ($[46] !== queryTarget || $[47] !== root || $[48] !== source || $[49] !== sourceKey) {
|
|
433
440
|
t20 = workspaceTextFileQueryOptions(source, sourceKey, root, queryTarget);
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
} else t20 = $[
|
|
441
|
+
$[46] = queryTarget;
|
|
442
|
+
$[47] = root;
|
|
443
|
+
$[48] = source;
|
|
444
|
+
$[49] = sourceKey;
|
|
445
|
+
$[50] = t20;
|
|
446
|
+
} else t20 = $[50];
|
|
440
447
|
const t21 = statSettled && resolverSettled && !resolvedAsset && !target.media && targetIsText;
|
|
441
448
|
let t22;
|
|
442
|
-
if ($[
|
|
449
|
+
if ($[51] !== t20 || $[52] !== t21) {
|
|
443
450
|
t22 = {
|
|
444
451
|
...t20,
|
|
445
452
|
enabled: t21
|
|
446
453
|
};
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
} else t22 = $[
|
|
454
|
+
$[51] = t20;
|
|
455
|
+
$[52] = t21;
|
|
456
|
+
$[53] = t22;
|
|
457
|
+
} else t22 = $[53];
|
|
451
458
|
const textQuery = useQuery(t22);
|
|
452
459
|
let t23;
|
|
453
|
-
if ($[
|
|
460
|
+
if ($[54] !== normalizedMaxInlineAssetBytes || $[55] !== queryTarget || $[56] !== root || $[57] !== source || $[58] !== sourceKey) {
|
|
454
461
|
t23 = workspaceBinaryFileQueryOptions(source, sourceKey, root, queryTarget, normalizedMaxInlineAssetBytes);
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
} else t23 = $[
|
|
462
|
+
$[54] = normalizedMaxInlineAssetBytes;
|
|
463
|
+
$[55] = queryTarget;
|
|
464
|
+
$[56] = root;
|
|
465
|
+
$[57] = source;
|
|
466
|
+
$[58] = sourceKey;
|
|
467
|
+
$[59] = t23;
|
|
468
|
+
} else t23 = $[59];
|
|
462
469
|
const t24 = statSettled && resolverSettled && !resolvedAsset && Boolean(target.media);
|
|
463
470
|
let t25;
|
|
464
|
-
if ($[
|
|
471
|
+
if ($[60] !== t23 || $[61] !== t24) {
|
|
465
472
|
t25 = {
|
|
466
473
|
...t23,
|
|
467
474
|
enabled: t24
|
|
468
475
|
};
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
} else t25 = $[
|
|
476
|
+
$[60] = t23;
|
|
477
|
+
$[61] = t24;
|
|
478
|
+
$[62] = t25;
|
|
479
|
+
} else t25 = $[62];
|
|
473
480
|
const binaryQuery = useQuery(t25);
|
|
474
481
|
let t26;
|
|
475
|
-
if ($[
|
|
482
|
+
if ($[63] !== queryClient || $[64] !== root || $[65] !== sourceKey) {
|
|
476
483
|
t26 = createDirectoryListingStore(queryClient, sourceKey, root);
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
} else t26 = $[
|
|
484
|
+
$[63] = queryClient;
|
|
485
|
+
$[64] = root;
|
|
486
|
+
$[65] = sourceKey;
|
|
487
|
+
$[66] = t26;
|
|
488
|
+
} else t26 = $[66];
|
|
482
489
|
const directoryListings = t26;
|
|
483
490
|
const entriesByDirectory = React.useSyncExternalStore(directoryListings.subscribe, directoryListings.getSnapshot, directoryListings.getSnapshot);
|
|
484
491
|
let entryByPath;
|
|
485
|
-
if ($[
|
|
492
|
+
if ($[67] !== entriesByDirectory) {
|
|
486
493
|
entryByPath = /* @__PURE__ */ new Map();
|
|
487
494
|
for (const directoryEntries of Object.values(entriesByDirectory)) for (const entry of directoryEntries) entryByPath.set(entry.path, entry);
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
} else entryByPath = $[
|
|
495
|
+
$[67] = entriesByDirectory;
|
|
496
|
+
$[68] = entryByPath;
|
|
497
|
+
} else entryByPath = $[68];
|
|
491
498
|
let t27;
|
|
492
|
-
if ($[
|
|
499
|
+
if ($[69] !== scopeKey) {
|
|
493
500
|
t27 = (next) => {
|
|
494
501
|
latestExpansionRef.current = {
|
|
495
502
|
scopeKey,
|
|
@@ -500,35 +507,35 @@ function useWorkspace(t0) {
|
|
|
500
507
|
[scopeKey]: next
|
|
501
508
|
}));
|
|
502
509
|
};
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
} else t27 = $[
|
|
510
|
+
$[69] = scopeKey;
|
|
511
|
+
$[70] = t27;
|
|
512
|
+
} else t27 = $[70];
|
|
506
513
|
const setExpandedPaths = t27;
|
|
507
514
|
let t28;
|
|
508
|
-
if ($[
|
|
515
|
+
if ($[71] !== onSelectedPathChange) {
|
|
509
516
|
t28 = (path_0) => onSelectedPathChange?.(path_0);
|
|
510
|
-
$[
|
|
511
|
-
$[
|
|
512
|
-
} else t28 = $[
|
|
517
|
+
$[71] = onSelectedPathChange;
|
|
518
|
+
$[72] = t28;
|
|
519
|
+
} else t28 = $[72];
|
|
513
520
|
const selectFile = t28;
|
|
514
521
|
const selectedError = statQuery.error ?? assetQuery.error ?? textQuery.error ?? binaryQuery.error;
|
|
515
522
|
let selectedFile = null;
|
|
516
523
|
if (selectedPath && selectedError) {
|
|
517
524
|
let t29;
|
|
518
|
-
if ($[
|
|
525
|
+
if ($[73] !== selectedPath) {
|
|
519
526
|
t29 = workspaceBasename(selectedPath);
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
} else t29 = $[
|
|
527
|
+
$[73] = selectedPath;
|
|
528
|
+
$[74] = t29;
|
|
529
|
+
} else t29 = $[74];
|
|
523
530
|
const t30 = target?.info ?? null;
|
|
524
531
|
let t31;
|
|
525
|
-
if ($[
|
|
532
|
+
if ($[75] !== selectedError) {
|
|
526
533
|
t31 = formatErrorMessage(selectedError);
|
|
527
|
-
$[
|
|
528
|
-
$[
|
|
529
|
-
} else t31 = $[
|
|
534
|
+
$[75] = selectedError;
|
|
535
|
+
$[76] = t31;
|
|
536
|
+
} else t31 = $[76];
|
|
530
537
|
let t32;
|
|
531
|
-
if ($[
|
|
538
|
+
if ($[77] !== selectedPath || $[78] !== t29 || $[79] !== t30 || $[80] !== t31) {
|
|
532
539
|
t32 = {
|
|
533
540
|
path: selectedPath,
|
|
534
541
|
name: t29,
|
|
@@ -537,23 +544,23 @@ function useWorkspace(t0) {
|
|
|
537
544
|
info: t30,
|
|
538
545
|
error: t31
|
|
539
546
|
};
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
} else t32 = $[
|
|
547
|
+
$[77] = selectedPath;
|
|
548
|
+
$[78] = t29;
|
|
549
|
+
$[79] = t30;
|
|
550
|
+
$[80] = t31;
|
|
551
|
+
$[81] = t32;
|
|
552
|
+
} else t32 = $[81];
|
|
546
553
|
selectedFile = t32;
|
|
547
554
|
} else if (selectedPath && statSettled && target && resolverSettled) {
|
|
548
555
|
if (resolvedAsset) {
|
|
549
556
|
let t29;
|
|
550
|
-
if ($[
|
|
557
|
+
if ($[82] !== selectedPath) {
|
|
551
558
|
t29 = workspaceBasename(selectedPath);
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
554
|
-
} else t29 = $[
|
|
559
|
+
$[82] = selectedPath;
|
|
560
|
+
$[83] = t29;
|
|
561
|
+
} else t29 = $[83];
|
|
555
562
|
let t30;
|
|
556
|
-
if ($[
|
|
563
|
+
if ($[84] !== resolvedAsset.asset || $[85] !== selectedPath || $[86] !== t29 || $[87] !== target.info) {
|
|
557
564
|
t30 = {
|
|
558
565
|
path: selectedPath,
|
|
559
566
|
name: t29,
|
|
@@ -562,23 +569,23 @@ function useWorkspace(t0) {
|
|
|
562
569
|
info: target.info,
|
|
563
570
|
error: null
|
|
564
571
|
};
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
} else t30 = $[
|
|
572
|
+
$[84] = resolvedAsset.asset;
|
|
573
|
+
$[85] = selectedPath;
|
|
574
|
+
$[86] = t29;
|
|
575
|
+
$[87] = target.info;
|
|
576
|
+
$[88] = t30;
|
|
577
|
+
} else t30 = $[88];
|
|
571
578
|
selectedFile = t30;
|
|
572
579
|
} else if (target.media && binaryQuery.isSuccess && !binaryQuery.isFetching) {
|
|
573
580
|
let t29;
|
|
574
|
-
if ($[
|
|
581
|
+
if ($[89] !== selectedPath) {
|
|
575
582
|
t29 = workspaceBasename(selectedPath);
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
} else t29 = $[
|
|
583
|
+
$[89] = selectedPath;
|
|
584
|
+
$[90] = t29;
|
|
585
|
+
} else t29 = $[90];
|
|
579
586
|
const t30 = binaryQuery.data?.asset ?? null;
|
|
580
587
|
let t31;
|
|
581
|
-
if ($[
|
|
588
|
+
if ($[91] !== selectedPath || $[92] !== t29 || $[93] !== t30 || $[94] !== target.info) {
|
|
582
589
|
t31 = {
|
|
583
590
|
path: selectedPath,
|
|
584
591
|
name: t29,
|
|
@@ -587,22 +594,22 @@ function useWorkspace(t0) {
|
|
|
587
594
|
info: target.info,
|
|
588
595
|
error: null
|
|
589
596
|
};
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
} else t31 = $[
|
|
597
|
+
$[91] = selectedPath;
|
|
598
|
+
$[92] = t29;
|
|
599
|
+
$[93] = t30;
|
|
600
|
+
$[94] = target.info;
|
|
601
|
+
$[95] = t31;
|
|
602
|
+
} else t31 = $[95];
|
|
596
603
|
selectedFile = t31;
|
|
597
604
|
} else if (targetIsText && textQuery.isSuccess) {
|
|
598
605
|
let t29;
|
|
599
|
-
if ($[
|
|
606
|
+
if ($[96] !== selectedPath) {
|
|
600
607
|
t29 = workspaceBasename(selectedPath);
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
} else t29 = $[
|
|
608
|
+
$[96] = selectedPath;
|
|
609
|
+
$[97] = t29;
|
|
610
|
+
} else t29 = $[97];
|
|
604
611
|
let t30;
|
|
605
|
-
if ($[
|
|
612
|
+
if ($[98] !== selectedPath || $[99] !== t29 || $[100] !== target.info || $[101] !== textQuery.data) {
|
|
606
613
|
t30 = {
|
|
607
614
|
path: selectedPath,
|
|
608
615
|
name: t29,
|
|
@@ -611,22 +618,22 @@ function useWorkspace(t0) {
|
|
|
611
618
|
info: target.info,
|
|
612
619
|
error: null
|
|
613
620
|
};
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
} else t30 = $[
|
|
621
|
+
$[98] = selectedPath;
|
|
622
|
+
$[99] = t29;
|
|
623
|
+
$[100] = target.info;
|
|
624
|
+
$[101] = textQuery.data;
|
|
625
|
+
$[102] = t30;
|
|
626
|
+
} else t30 = $[102];
|
|
620
627
|
selectedFile = t30;
|
|
621
628
|
} else if (!target.media && !targetIsText) {
|
|
622
629
|
let t29;
|
|
623
|
-
if ($[
|
|
630
|
+
if ($[103] !== selectedPath) {
|
|
624
631
|
t29 = workspaceBasename(selectedPath);
|
|
625
|
-
$[
|
|
626
|
-
$[
|
|
627
|
-
} else t29 = $[
|
|
632
|
+
$[103] = selectedPath;
|
|
633
|
+
$[104] = t29;
|
|
634
|
+
} else t29 = $[104];
|
|
628
635
|
let t30;
|
|
629
|
-
if ($[
|
|
636
|
+
if ($[105] !== selectedPath || $[106] !== t29 || $[107] !== target.info) {
|
|
630
637
|
t30 = {
|
|
631
638
|
path: selectedPath,
|
|
632
639
|
name: t29,
|
|
@@ -635,16 +642,16 @@ function useWorkspace(t0) {
|
|
|
635
642
|
info: target.info,
|
|
636
643
|
error: null
|
|
637
644
|
};
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
} else t30 = $[
|
|
645
|
+
$[105] = selectedPath;
|
|
646
|
+
$[106] = t29;
|
|
647
|
+
$[107] = target.info;
|
|
648
|
+
$[108] = t30;
|
|
649
|
+
} else t30 = $[108];
|
|
643
650
|
selectedFile = t30;
|
|
644
651
|
}
|
|
645
652
|
}
|
|
646
653
|
let paths;
|
|
647
|
-
if ($[
|
|
654
|
+
if ($[109] !== assetQuery || $[110] !== binaryQuery || $[111] !== directoryPaths || $[112] !== directoryQueries || $[113] !== selectedPath || $[114] !== statQuery || $[115] !== textQuery) {
|
|
648
655
|
paths = /* @__PURE__ */ new Set();
|
|
649
656
|
for (const [index, path_1] of directoryPaths.entries()) if (directoryQueries[index]?.isFetching) paths.add(path_1);
|
|
650
657
|
if (selectedPath && [
|
|
@@ -653,27 +660,27 @@ function useWorkspace(t0) {
|
|
|
653
660
|
textQuery,
|
|
654
661
|
binaryQuery
|
|
655
662
|
].some(_temp)) paths.add(selectedPath);
|
|
656
|
-
$[
|
|
657
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
660
|
-
$[
|
|
661
|
-
$[
|
|
662
|
-
$[
|
|
663
|
-
$[
|
|
664
|
-
} else paths = $[
|
|
663
|
+
$[109] = assetQuery;
|
|
664
|
+
$[110] = binaryQuery;
|
|
665
|
+
$[111] = directoryPaths;
|
|
666
|
+
$[112] = directoryQueries;
|
|
667
|
+
$[113] = selectedPath;
|
|
668
|
+
$[114] = statQuery;
|
|
669
|
+
$[115] = textQuery;
|
|
670
|
+
$[116] = paths;
|
|
671
|
+
} else paths = $[116];
|
|
665
672
|
const loadingPaths = paths;
|
|
666
673
|
const rootDirectoryIndex = directoryPaths.indexOf(root);
|
|
667
674
|
const isLoading = Boolean(directoryQueries[rootDirectoryIndex]?.isFetching) || infoQuery.isFetching;
|
|
668
675
|
let t29;
|
|
669
|
-
if ($[
|
|
676
|
+
if ($[117] !== directoryQueries) {
|
|
670
677
|
t29 = [...new Set(directoryQueries.map(_temp2).filter(_temp3).map(formatErrorMessage))].join("; ") || null;
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
} else t29 = $[
|
|
678
|
+
$[117] = directoryQueries;
|
|
679
|
+
$[118] = t29;
|
|
680
|
+
} else t29 = $[118];
|
|
674
681
|
const error = t29;
|
|
675
682
|
let t30;
|
|
676
|
-
if ($[
|
|
683
|
+
if ($[119] !== expandedPaths || $[120] !== normalizedMaxInlineAssetBytes || $[121] !== queryClient || $[122] !== resolveFileAsset || $[123] !== root || $[124] !== scopeKey || $[125] !== selectedPath || $[126] !== source || $[127] !== sourceKey) {
|
|
677
684
|
t30 = () => {
|
|
678
685
|
(async () => {
|
|
679
686
|
const latestExpandedPaths = latestExpansionRef.current.scopeKey === scopeKey ? latestExpansionRef.current.paths : expandedPaths;
|
|
@@ -691,7 +698,7 @@ function useWorkspace(t0) {
|
|
|
691
698
|
}
|
|
692
699
|
}));
|
|
693
700
|
await queryClient.fetchQuery({
|
|
694
|
-
...workspaceInfoQueryOptions(source, sourceKey
|
|
701
|
+
...workspaceInfoQueryOptions(source, sourceKey),
|
|
695
702
|
staleTime: 0
|
|
696
703
|
}).catch(_temp4);
|
|
697
704
|
if (refreshedDirectories.includes(false)) return;
|
|
@@ -705,23 +712,23 @@ function useWorkspace(t0) {
|
|
|
705
712
|
});
|
|
706
713
|
})().catch(_temp5);
|
|
707
714
|
};
|
|
708
|
-
$[
|
|
709
|
-
$[
|
|
710
|
-
$[
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
} else t30 = $[
|
|
715
|
+
$[119] = expandedPaths;
|
|
716
|
+
$[120] = normalizedMaxInlineAssetBytes;
|
|
717
|
+
$[121] = queryClient;
|
|
718
|
+
$[122] = resolveFileAsset;
|
|
719
|
+
$[123] = root;
|
|
720
|
+
$[124] = scopeKey;
|
|
721
|
+
$[125] = selectedPath;
|
|
722
|
+
$[126] = source;
|
|
723
|
+
$[127] = sourceKey;
|
|
724
|
+
$[128] = t30;
|
|
725
|
+
} else t30 = $[128];
|
|
719
726
|
const refresh = t30;
|
|
720
727
|
const t31 = entryByPath.size > 0 ? entryByPath : EMPTY_ENTRY_BY_PATH;
|
|
721
728
|
const t32 = loadingPaths.size > 0 ? loadingPaths : EMPTY_PATHS;
|
|
722
729
|
const t33 = infoQuery.data ?? null;
|
|
723
730
|
let t34;
|
|
724
|
-
if ($[
|
|
731
|
+
if ($[129] !== entriesByDirectory || $[130] !== error || $[131] !== expandedPaths || $[132] !== isLoading || $[133] !== refresh || $[134] !== root || $[135] !== selectFile || $[136] !== selectedFile || $[137] !== selectedPath || $[138] !== setExpandedPaths || $[139] !== t31 || $[140] !== t32 || $[141] !== t33) {
|
|
725
732
|
t34 = {
|
|
726
733
|
root,
|
|
727
734
|
entriesByDirectory,
|
|
@@ -737,21 +744,21 @@ function useWorkspace(t0) {
|
|
|
737
744
|
info: t33,
|
|
738
745
|
refresh
|
|
739
746
|
};
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
744
|
-
$[
|
|
745
|
-
$[
|
|
746
|
-
$[
|
|
747
|
-
$[
|
|
748
|
-
$[
|
|
749
|
-
$[
|
|
750
|
-
$[
|
|
751
|
-
$[
|
|
752
|
-
$[
|
|
753
|
-
$[
|
|
754
|
-
} else t34 = $[
|
|
747
|
+
$[129] = entriesByDirectory;
|
|
748
|
+
$[130] = error;
|
|
749
|
+
$[131] = expandedPaths;
|
|
750
|
+
$[132] = isLoading;
|
|
751
|
+
$[133] = refresh;
|
|
752
|
+
$[134] = root;
|
|
753
|
+
$[135] = selectFile;
|
|
754
|
+
$[136] = selectedFile;
|
|
755
|
+
$[137] = selectedPath;
|
|
756
|
+
$[138] = setExpandedPaths;
|
|
757
|
+
$[139] = t31;
|
|
758
|
+
$[140] = t32;
|
|
759
|
+
$[141] = t33;
|
|
760
|
+
$[142] = t34;
|
|
761
|
+
} else t34 = $[142];
|
|
755
762
|
return t34;
|
|
756
763
|
}
|
|
757
764
|
function _temp5() {}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as WorkspaceAutomationOutcome, c as WorkspaceAutomationRunFile, d as WorkspaceAutomationsPanelProps, f as automationsWorkbenchItem, i as WorkspaceAutomationInvocation, l as WorkspaceAutomationSource, n as WorkspaceAutomationFile, o as WorkspaceAutomationParam, r as WorkspaceAutomationFileProps, s as WorkspaceAutomationParamType, t as WorkspaceAutomation, u as WorkspaceAutomationsPanel } from "../../WorkspaceAutomation-
|
|
1
|
+
import { a as WorkspaceAutomationOutcome, c as WorkspaceAutomationRunFile, d as WorkspaceAutomationsPanelProps, f as automationsWorkbenchItem, i as WorkspaceAutomationInvocation, l as WorkspaceAutomationSource, n as WorkspaceAutomationFile, o as WorkspaceAutomationParam, r as WorkspaceAutomationFileProps, s as WorkspaceAutomationParamType, t as WorkspaceAutomation, u as WorkspaceAutomationsPanel } from "../../WorkspaceAutomation-hwl6C1aX.js";
|
|
2
2
|
export { WorkspaceAutomation, WorkspaceAutomationFile, WorkspaceAutomationFileProps, WorkspaceAutomationInvocation, WorkspaceAutomationOutcome, WorkspaceAutomationParam, WorkspaceAutomationParamType, WorkspaceAutomationRunFile, WorkspaceAutomationSource, WorkspaceAutomationsPanel, WorkspaceAutomationsPanelProps, automationsWorkbenchItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as WorkspaceAutomationTableValue, S as WorkspaceAutomationTableSource, _ as WorkspaceAutomationTableLoadOptions, b as WorkspaceAutomationTableRow, g as WorkspaceAutomationTableInput, h as WorkspaceAutomationTableData, m as WorkspaceAutomationTableActions, p as WorkspaceAutomationTable, v as WorkspaceAutomationTableLoaded, x as WorkspaceAutomationTableRun, y as WorkspaceAutomationTableProps } from "../../WorkspaceAutomation-
|
|
1
|
+
import { C as WorkspaceAutomationTableValue, S as WorkspaceAutomationTableSource, _ as WorkspaceAutomationTableLoadOptions, b as WorkspaceAutomationTableRow, g as WorkspaceAutomationTableInput, h as WorkspaceAutomationTableData, m as WorkspaceAutomationTableActions, p as WorkspaceAutomationTable, v as WorkspaceAutomationTableLoaded, x as WorkspaceAutomationTableRun, y as WorkspaceAutomationTableProps } from "../../WorkspaceAutomation-hwl6C1aX.js";
|
|
2
2
|
export { WorkspaceAutomationTable, WorkspaceAutomationTableActions, WorkspaceAutomationTableData, WorkspaceAutomationTableInput, WorkspaceAutomationTableLoadOptions, WorkspaceAutomationTableLoaded, WorkspaceAutomationTableProps, WorkspaceAutomationTableRow, WorkspaceAutomationTableRun, WorkspaceAutomationTableSource, WorkspaceAutomationTableValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as WorkspaceBrowserSort, n as WorkspaceBrowserActions, r as WorkspaceBrowserProps, t as WorkspaceBrowser } from "../../WorkspaceBrowser-
|
|
1
|
+
import { i as WorkspaceBrowserSort, n as WorkspaceBrowserActions, r as WorkspaceBrowserProps, t as WorkspaceBrowser } from "../../WorkspaceBrowser-CNVAKXXZ.js";
|
|
2
2
|
export { WorkspaceBrowser, WorkspaceBrowserActions, WorkspaceBrowserProps, WorkspaceBrowserSort };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-
|
|
1
|
+
import { t as WorkspaceBrowser } from "../../WorkspaceBrowser-ojoZy0uO.js";
|
|
2
2
|
export { WorkspaceBrowser };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as workspacePathsOverlap, i as workspaceConceptQueryOptions, n as invalidateWorkspaceConceptQueries, r as workspaceConceptQueryKey, t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-
|
|
1
|
+
import { a as workspacePathsOverlap, i as workspaceConceptQueryOptions, n as invalidateWorkspaceConceptQueries, r as workspaceConceptQueryKey, t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-DqzfZWws.js";
|
|
2
2
|
export { WorkspaceConceptQueryOptions, invalidateWorkspaceConceptQueries, workspaceConceptQueryKey, workspaceConceptQueryOptions, workspacePathsOverlap };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-
|
|
1
|
+
import { t as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-DqzfZWws.js";
|
|
2
2
|
import { t as ConceptCardProps } from "../../workspace-entity-card-2TC3RPKh.js";
|
|
3
3
|
import { t as WorkspacePerson } from "../../workspace-person-BSgvRjZE.js";
|
|
4
4
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-
|
|
2
|
-
import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-
|
|
1
|
+
import { r as WorkspaceDragAndDrop } from "../../WorkspaceFileTransfer-D--dVla2.js";
|
|
2
|
+
import { i as WorkspaceFileCommands } from "../../WorkspaceFileCommands-CN2oVUzx.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { FileInfo } from "@cloudflare/shell";
|
|
5
5
|
//#region src/components/agents-sdk/WorkspaceDesktop.d.ts
|
|
@@ -13,13 +13,13 @@ export interface WorkspaceDesktopProps {
|
|
|
13
13
|
onOpen: (entry: FileInfo) => void;
|
|
14
14
|
/** Mounted only while Quick Look is open. Reuse WorkspaceFileView for file content. */
|
|
15
15
|
renderPreview: (entry: FileInfo) => React.ReactNode;
|
|
16
|
-
/** Decorative, host-provided thumbnails. Never fetch full files merely to populate the desktop. */
|
|
17
|
-
renderThumbnail?: (entry: FileInfo) => React.ReactNode;
|
|
18
16
|
/** Visible host destination when Quick Look closes after this desktop was hidden. */
|
|
19
17
|
previewFallbackFocus?: () => HTMLElement | null;
|
|
20
18
|
/**
|
|
21
19
|
* Objects drag, and the desktop and its folders take drops, as on the Finder
|
|
22
|
-
* desktop. A folder held under a drag opens through `onOpen`.
|
|
20
|
+
* desktop. A folder held under a drag opens through `onOpen`. Its workspace
|
|
21
|
+
* also draws the objects' thumbnails: an SVG as its image, a text file as
|
|
22
|
+
* its page; without it every object keeps its kind's artwork.
|
|
23
23
|
*/
|
|
24
24
|
dragAndDrop?: WorkspaceDragAndDrop;
|
|
25
25
|
/**
|
|
@@ -41,5 +41,5 @@ export interface WorkspaceDesktopProps {
|
|
|
41
41
|
* Right-click, a held finger, or Shift+F10 opens the Finder's menu on the
|
|
42
42
|
* object or on the desktop. Dialog owns dismissal and focus containment.
|
|
43
43
|
*/
|
|
44
|
-
export declare function WorkspaceDesktop({ entries: listed, directory, onOpen, renderPreview,
|
|
44
|
+
export declare function WorkspaceDesktop({ entries: listed, directory, onOpen, renderPreview, previewFallbackFocus, dragAndDrop, commands, backgroundMenu }: WorkspaceDesktopProps): React.JSX.Element;
|
|
45
45
|
//#endregion
|