@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
|
@@ -283,6 +283,10 @@ async function workspaceRenameTarget(source, path, name) {
|
|
|
283
283
|
if (await source.exists(to)) throw new Error(`The name “${trimmed}” is already taken. Please choose a different name.`);
|
|
284
284
|
return to;
|
|
285
285
|
}
|
|
286
|
+
/** Whether `path` is `folder` or inside it. */
|
|
287
|
+
function isWithin(path, folder) {
|
|
288
|
+
return folder === "/" || path === folder || path.startsWith(`${folder}/`);
|
|
289
|
+
}
|
|
286
290
|
/** "untitled folder", or the first free "untitled folder 2"… in `directory`. */
|
|
287
291
|
function newWorkspaceFolderPath(source, directory) {
|
|
288
292
|
return availableWorkspacePath(source, directory, "untitled folder", {
|
|
@@ -336,29 +340,36 @@ function writeSystemClipboard(source, paths) {
|
|
|
336
340
|
* ```
|
|
337
341
|
*/
|
|
338
342
|
function useWorkspaceFileCommands(t0) {
|
|
339
|
-
const $ = c(
|
|
340
|
-
const { home, openFolder, getInfo, onStatus } = t0;
|
|
341
|
-
const queryClient = useQueryClient();
|
|
342
|
-
let t1;
|
|
343
|
-
if ($[0] !== onStatus) {
|
|
344
|
-
t1 = { onStatus };
|
|
345
|
-
$[0] = onStatus;
|
|
346
|
-
$[1] = t1;
|
|
347
|
-
} else t1 = $[1];
|
|
348
|
-
const transfer = useWorkspaceTransfer(t1);
|
|
349
|
-
const [clipboard, setClipboard] = React.useState(null);
|
|
343
|
+
const $ = c(111);
|
|
344
|
+
const { home, readOnly: t1, openFolder, getInfo, onStatus } = t0;
|
|
350
345
|
let t2;
|
|
351
|
-
if ($[
|
|
352
|
-
t2 = [];
|
|
353
|
-
$[
|
|
354
|
-
|
|
355
|
-
|
|
346
|
+
if ($[0] !== t1) {
|
|
347
|
+
t2 = t1 === void 0 ? [] : t1;
|
|
348
|
+
$[0] = t1;
|
|
349
|
+
$[1] = t2;
|
|
350
|
+
} else t2 = $[1];
|
|
351
|
+
const readOnly = t2;
|
|
352
|
+
const queryClient = useQueryClient();
|
|
356
353
|
let t3;
|
|
357
|
-
if ($[
|
|
358
|
-
t3 =
|
|
354
|
+
if ($[2] !== onStatus) {
|
|
355
|
+
t3 = { onStatus };
|
|
356
|
+
$[2] = onStatus;
|
|
359
357
|
$[3] = t3;
|
|
360
358
|
} else t3 = $[3];
|
|
361
|
-
const
|
|
359
|
+
const transfer = useWorkspaceTransfer(t3);
|
|
360
|
+
const [clipboard, setClipboard] = React.useState(null);
|
|
361
|
+
let t4;
|
|
362
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
363
|
+
t4 = [];
|
|
364
|
+
$[4] = t4;
|
|
365
|
+
} else t4 = $[4];
|
|
366
|
+
const [undoStack, setUndoStack] = React.useState(t4);
|
|
367
|
+
let t5;
|
|
368
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
369
|
+
t5 = [];
|
|
370
|
+
$[5] = t5;
|
|
371
|
+
} else t5 = $[5];
|
|
372
|
+
const [redoStack, setRedoStack] = React.useState(t5);
|
|
362
373
|
const [confirm, setConfirm] = React.useState(null);
|
|
363
374
|
const busy = React.useRef(false);
|
|
364
375
|
const trashFull = useQuery({
|
|
@@ -369,47 +380,55 @@ function useWorkspaceFileCommands(t0) {
|
|
|
369
380
|
],
|
|
370
381
|
queryFn: () => workspaceTrashIsFull(home.source)
|
|
371
382
|
}).data ?? false;
|
|
372
|
-
let
|
|
373
|
-
if ($[
|
|
374
|
-
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
383
|
+
let t6;
|
|
384
|
+
if ($[6] !== home.sourceKey || $[7] !== readOnly) {
|
|
385
|
+
t6 = (volume, path) => volume.sourceKey === home.sourceKey && readOnly.some((folder) => isWithin(path, folder));
|
|
386
|
+
$[6] = home.sourceKey;
|
|
387
|
+
$[7] = readOnly;
|
|
388
|
+
$[8] = t6;
|
|
389
|
+
} else t6 = $[8];
|
|
390
|
+
const locked = t6;
|
|
391
|
+
let t7;
|
|
392
|
+
if ($[9] !== queryClient) {
|
|
393
|
+
t7 = (volume_0) => queryClient.invalidateQueries({ queryKey: ["workspace", volume_0.sourceKey] });
|
|
394
|
+
$[9] = queryClient;
|
|
395
|
+
$[10] = t7;
|
|
396
|
+
} else t7 = $[10];
|
|
397
|
+
const reload = t7;
|
|
398
|
+
let t8;
|
|
399
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
400
|
+
t8 = function record(entry) {
|
|
382
401
|
if (!entry.operations.length) return;
|
|
383
402
|
setUndoStack((stack) => [...stack, entry]);
|
|
384
403
|
setRedoStack([]);
|
|
385
404
|
};
|
|
386
|
-
$[
|
|
387
|
-
} else
|
|
388
|
-
const record =
|
|
389
|
-
let
|
|
390
|
-
if ($[
|
|
391
|
-
|
|
405
|
+
$[11] = t8;
|
|
406
|
+
} else t8 = $[11];
|
|
407
|
+
const record = t8;
|
|
408
|
+
let t9;
|
|
409
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
410
|
+
t9 = function ask(question) {
|
|
392
411
|
return new Promise((resolve) => setConfirm({
|
|
393
412
|
...question,
|
|
394
413
|
resolve
|
|
395
414
|
}));
|
|
396
415
|
};
|
|
397
|
-
$[
|
|
398
|
-
} else
|
|
399
|
-
const ask =
|
|
400
|
-
let
|
|
401
|
-
if ($[
|
|
402
|
-
|
|
416
|
+
$[12] = t9;
|
|
417
|
+
} else t9 = $[12];
|
|
418
|
+
const ask = t9;
|
|
419
|
+
let t10;
|
|
420
|
+
if ($[13] !== confirm) {
|
|
421
|
+
t10 = function answer(confirmed) {
|
|
403
422
|
confirm?.resolve(confirmed);
|
|
404
423
|
setConfirm(null);
|
|
405
424
|
};
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
} else
|
|
409
|
-
const answer =
|
|
410
|
-
let
|
|
411
|
-
if ($[
|
|
412
|
-
|
|
425
|
+
$[13] = confirm;
|
|
426
|
+
$[14] = t10;
|
|
427
|
+
} else t10 = $[14];
|
|
428
|
+
const answer = t10;
|
|
429
|
+
let t11;
|
|
430
|
+
if ($[15] !== transfer) {
|
|
431
|
+
t11 = async function exclusive(title, work) {
|
|
413
432
|
if (busy.current) return;
|
|
414
433
|
busy.current = true;
|
|
415
434
|
const result = await work().then(_temp, _temp2);
|
|
@@ -423,33 +442,35 @@ function useWorkspaceFileCommands(t0) {
|
|
|
423
442
|
}
|
|
424
443
|
return result.value;
|
|
425
444
|
};
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
} else
|
|
429
|
-
const exclusive =
|
|
430
|
-
let
|
|
431
|
-
if ($[
|
|
432
|
-
|
|
433
|
-
const inverse = await exclusive(`${label} couldn’t be completed`, () => runWorkspaceFileOperations(
|
|
434
|
-
await reload(
|
|
445
|
+
$[15] = transfer;
|
|
446
|
+
$[16] = t11;
|
|
447
|
+
} else t11 = $[16];
|
|
448
|
+
const exclusive = t11;
|
|
449
|
+
let t12;
|
|
450
|
+
if ($[17] !== exclusive || $[18] !== reload) {
|
|
451
|
+
t12 = async function apply(volume_1, label, operations) {
|
|
452
|
+
const inverse = await exclusive(`${label} couldn’t be completed`, () => runWorkspaceFileOperations(volume_1.source, operations));
|
|
453
|
+
await reload(volume_1);
|
|
435
454
|
if (!inverse) return [];
|
|
436
455
|
record({
|
|
437
456
|
label,
|
|
438
|
-
volume:
|
|
457
|
+
volume: volume_1,
|
|
439
458
|
operations: inverse
|
|
440
459
|
});
|
|
441
460
|
return workspaceFileOperationPaths(inverse);
|
|
442
461
|
};
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
} else
|
|
447
|
-
const apply =
|
|
448
|
-
let
|
|
449
|
-
if ($[
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
462
|
+
$[17] = exclusive;
|
|
463
|
+
$[18] = reload;
|
|
464
|
+
$[19] = t12;
|
|
465
|
+
} else t12 = $[19];
|
|
466
|
+
const apply = t12;
|
|
467
|
+
let t13;
|
|
468
|
+
if ($[20] !== apply || $[21] !== exclusive || $[22] !== locked || $[23] !== reload) {
|
|
469
|
+
t13 = async function trash(volume_2, all) {
|
|
470
|
+
const paths = all.filter((path_0) => !locked(volume_2, path_0));
|
|
471
|
+
if (!paths.length) return;
|
|
472
|
+
if (!volume_2.linked) {
|
|
473
|
+
await apply(volume_2, `Move of ${subject(paths)}`, paths.map(_temp3));
|
|
453
474
|
return;
|
|
454
475
|
}
|
|
455
476
|
if (!await ask({
|
|
@@ -458,22 +479,23 @@ function useWorkspaceFileCommands(t0) {
|
|
|
458
479
|
action: "Delete"
|
|
459
480
|
})) return;
|
|
460
481
|
await exclusive("The items couldn’t be deleted", async () => {
|
|
461
|
-
for (const
|
|
482
|
+
for (const path_2 of paths) await volume_2.source.rm(path_2, {
|
|
462
483
|
recursive: true,
|
|
463
484
|
force: true
|
|
464
485
|
});
|
|
465
486
|
});
|
|
466
|
-
await reload(
|
|
487
|
+
await reload(volume_2);
|
|
467
488
|
};
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
489
|
+
$[20] = apply;
|
|
490
|
+
$[21] = exclusive;
|
|
491
|
+
$[22] = locked;
|
|
492
|
+
$[23] = reload;
|
|
493
|
+
$[24] = t13;
|
|
494
|
+
} else t13 = $[24];
|
|
495
|
+
const trash = t13;
|
|
496
|
+
let t14;
|
|
497
|
+
if ($[25] !== exclusive || $[26] !== home || $[27] !== reload) {
|
|
498
|
+
t14 = async function emptyTrash() {
|
|
477
499
|
if (!await ask({
|
|
478
500
|
title: "Are you sure you want to permanently erase the items in the Trash?",
|
|
479
501
|
detail: "You can’t undo this action.",
|
|
@@ -482,55 +504,59 @@ function useWorkspaceFileCommands(t0) {
|
|
|
482
504
|
await exclusive("The Trash couldn’t be emptied", () => emptyWorkspaceTrash(home.source));
|
|
483
505
|
await reload(home);
|
|
484
506
|
};
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
} else
|
|
490
|
-
const emptyTrash =
|
|
491
|
-
let
|
|
492
|
-
if ($[
|
|
493
|
-
|
|
494
|
-
if (
|
|
495
|
-
|
|
507
|
+
$[25] = exclusive;
|
|
508
|
+
$[26] = home;
|
|
509
|
+
$[27] = reload;
|
|
510
|
+
$[28] = t14;
|
|
511
|
+
} else t14 = $[28];
|
|
512
|
+
const emptyTrash = t14;
|
|
513
|
+
let t15;
|
|
514
|
+
if ($[29] !== home || $[30] !== locked || $[31] !== transfer || $[32] !== trash) {
|
|
515
|
+
t15 = async function drop(volume_3, dropped, directory, requested, label_0) {
|
|
516
|
+
if (locked(volume_3, directory)) return [];
|
|
517
|
+
const operation = dropped.kind === "workspace" && dropped.sourceKey === home.sourceKey && dropped.paths.some((path_3) => locked(home, path_3)) ? "copy" : requested;
|
|
518
|
+
if (dropped.kind === "workspace" && dropped.sourceKey === volume_3.sourceKey && !volume_3.linked && directory === "/.Trash") {
|
|
519
|
+
await trash(volume_3, dropped.paths);
|
|
496
520
|
return [];
|
|
497
521
|
}
|
|
498
522
|
const result_0 = await transfer.run({
|
|
499
523
|
drop: dropped,
|
|
500
|
-
destination:
|
|
501
|
-
destinationKey:
|
|
524
|
+
destination: volume_3.source,
|
|
525
|
+
destinationKey: volume_3.sourceKey,
|
|
502
526
|
directory,
|
|
503
527
|
operation
|
|
504
528
|
});
|
|
505
529
|
if (!result_0) return [];
|
|
506
|
-
const moved = dropped.kind === "workspace" && dropped.sourceKey ===
|
|
507
|
-
const operations_0 = result_0.landed.flatMap((
|
|
508
|
-
const { from, path:
|
|
530
|
+
const moved = dropped.kind === "workspace" && dropped.sourceKey === volume_3.sourceKey;
|
|
531
|
+
const operations_0 = result_0.landed.flatMap((t16) => {
|
|
532
|
+
const { from, path: path_4 } = t16;
|
|
509
533
|
return moved && operation === "move" && from ? [{
|
|
510
534
|
kind: "move",
|
|
511
|
-
from:
|
|
535
|
+
from: path_4,
|
|
512
536
|
to: from
|
|
513
|
-
}] :
|
|
537
|
+
}] : volume_3.linked ? [] : [{
|
|
514
538
|
kind: "trash",
|
|
515
|
-
path:
|
|
539
|
+
path: path_4
|
|
516
540
|
}];
|
|
517
541
|
});
|
|
518
542
|
const paths_0 = result_0.landed.map(_temp4);
|
|
519
543
|
record({
|
|
520
544
|
label: label_0 ?? `${moved && operation === "move" ? "Move" : "Copy"} of ${subject(paths_0)}`,
|
|
521
|
-
volume:
|
|
545
|
+
volume: volume_3,
|
|
522
546
|
operations: operations_0.toReversed()
|
|
523
547
|
});
|
|
524
548
|
return paths_0;
|
|
525
549
|
};
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
$[
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
550
|
+
$[29] = home;
|
|
551
|
+
$[30] = locked;
|
|
552
|
+
$[31] = transfer;
|
|
553
|
+
$[32] = trash;
|
|
554
|
+
$[33] = t15;
|
|
555
|
+
} else t15 = $[33];
|
|
556
|
+
const drop = t15;
|
|
557
|
+
let t16;
|
|
558
|
+
if ($[34] !== exclusive || $[35] !== redoStack || $[36] !== reload || $[37] !== undoStack) {
|
|
559
|
+
t16 = async function step(direction) {
|
|
534
560
|
const [from_0, setFrom, setTo] = direction === "undo" ? [
|
|
535
561
|
undoStack,
|
|
536
562
|
setUndoStack,
|
|
@@ -552,32 +578,34 @@ function useWorkspaceFileCommands(t0) {
|
|
|
552
578
|
}]);
|
|
553
579
|
return workspaceFileOperationPaths(inverse_0);
|
|
554
580
|
};
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
560
|
-
} else
|
|
561
|
-
const step =
|
|
562
|
-
let
|
|
563
|
-
if ($[
|
|
564
|
-
|
|
581
|
+
$[34] = exclusive;
|
|
582
|
+
$[35] = redoStack;
|
|
583
|
+
$[36] = reload;
|
|
584
|
+
$[37] = undoStack;
|
|
585
|
+
$[38] = t16;
|
|
586
|
+
} else t16 = $[38];
|
|
587
|
+
const step = t16;
|
|
588
|
+
let t17;
|
|
589
|
+
if ($[39] !== apply || $[40] !== clipboard || $[41] !== drop || $[42] !== emptyTrash || $[43] !== exclusive || $[44] !== getInfo || $[45] !== locked || $[46] !== openFolder || $[47] !== redoStack.length || $[48] !== reload || $[49] !== step || $[50] !== transfer || $[51] !== trash || $[52] !== trashFull || $[53] !== undoStack.length) {
|
|
590
|
+
t17 = function commands(volume_4, surface) {
|
|
565
591
|
const canRun = (command, target) => {
|
|
566
|
-
const inTrash = !
|
|
592
|
+
const inTrash = !volume_4.linked && target.directory === "/.Trash";
|
|
567
593
|
const some = target.paths.length > 0;
|
|
594
|
+
const fixed = target.paths.some((path_6) => locked(volume_4, path_6));
|
|
595
|
+
const closed = locked(volume_4, target.directory);
|
|
568
596
|
switch (command) {
|
|
569
597
|
case "open":
|
|
570
598
|
case "quick-look":
|
|
571
|
-
case "copy":
|
|
572
|
-
case "cut": return some;
|
|
599
|
+
case "copy": return some;
|
|
600
|
+
case "cut": return some && !fixed;
|
|
573
601
|
case "get-info": return getInfo !== void 0;
|
|
574
602
|
case "select-all": return true;
|
|
575
|
-
case "rename": return target.paths.length === 1 && !inTrash;
|
|
576
|
-
case "duplicate":
|
|
577
|
-
case "trash": return some && !inTrash;
|
|
578
|
-
case "paste": return !inTrash && (clipboard !== null || Boolean(target.files?.length));
|
|
579
|
-
case "move-here": return !inTrash && clipboard !== null;
|
|
580
|
-
case "new-folder": return !inTrash;
|
|
603
|
+
case "rename": return target.paths.length === 1 && !inTrash && !fixed;
|
|
604
|
+
case "duplicate": return some && !inTrash && !closed;
|
|
605
|
+
case "trash": return some && !inTrash && !fixed;
|
|
606
|
+
case "paste": return !inTrash && !closed && (clipboard !== null || Boolean(target.files?.length));
|
|
607
|
+
case "move-here": return !inTrash && !closed && clipboard !== null;
|
|
608
|
+
case "new-folder": return !inTrash && !closed;
|
|
581
609
|
case "put-back": return some && inTrash;
|
|
582
610
|
case "empty-trash": return inTrash && trashFull;
|
|
583
611
|
case "show-in-finder": return surface === "desktop" && some;
|
|
@@ -588,20 +616,21 @@ function useWorkspaceFileCommands(t0) {
|
|
|
588
616
|
return {
|
|
589
617
|
canRun,
|
|
590
618
|
pasteLabel: clipboard ? `Paste ${clipboard.paths.length === 1 ? "Item" : `${clipboard.paths.length} Items`}` : null,
|
|
591
|
-
rename: async (
|
|
592
|
-
|
|
619
|
+
rename: async (path_7, name) => {
|
|
620
|
+
if (locked(volume_4, path_7)) return path_7;
|
|
621
|
+
const to = await workspaceRenameTarget(volume_4.source, path_7, name).catch((error_0) => {
|
|
593
622
|
transfer.alert({
|
|
594
623
|
title: "That name can’t be used",
|
|
595
624
|
detail: formatOperationError(error_0)
|
|
596
625
|
});
|
|
597
626
|
throw error_0;
|
|
598
627
|
});
|
|
599
|
-
if (!to) return
|
|
600
|
-
return (await apply(
|
|
628
|
+
if (!to) return path_7;
|
|
629
|
+
return (await apply(volume_4, "Rename", [{
|
|
601
630
|
kind: "move",
|
|
602
|
-
from:
|
|
631
|
+
from: path_7,
|
|
603
632
|
to
|
|
604
|
-
}])).length ? to :
|
|
633
|
+
}])).length ? to : path_7;
|
|
605
634
|
},
|
|
606
635
|
run: async (command_0, target_0) => {
|
|
607
636
|
if (!canRun(command_0, target_0)) return;
|
|
@@ -609,22 +638,22 @@ function useWorkspaceFileCommands(t0) {
|
|
|
609
638
|
switch (command_0) {
|
|
610
639
|
case "copy":
|
|
611
640
|
case "cut":
|
|
612
|
-
writeSystemClipboard(
|
|
641
|
+
writeSystemClipboard(volume_4.source, paths_1);
|
|
613
642
|
setClipboard({
|
|
614
|
-
volume:
|
|
643
|
+
volume: volume_4,
|
|
615
644
|
paths: paths_1,
|
|
616
645
|
cut: command_0 === "cut"
|
|
617
646
|
});
|
|
618
647
|
return;
|
|
619
648
|
case "paste":
|
|
620
649
|
case "move-here": {
|
|
621
|
-
if (target_0.files?.length) return drop(
|
|
650
|
+
if (target_0.files?.length) return drop(volume_4, {
|
|
622
651
|
kind: "files",
|
|
623
652
|
items: target_0.files.map(_temp6)
|
|
624
653
|
}, directory_0, "copy");
|
|
625
654
|
if (!clipboard) return;
|
|
626
655
|
const move = command_0 === "move-here" || clipboard.cut;
|
|
627
|
-
const landed = await drop(
|
|
656
|
+
const landed = await drop(volume_4, {
|
|
628
657
|
kind: "workspace",
|
|
629
658
|
...clipboard.volume,
|
|
630
659
|
paths: clipboard.paths
|
|
@@ -632,33 +661,33 @@ function useWorkspaceFileCommands(t0) {
|
|
|
632
661
|
if (move) setClipboard(null);
|
|
633
662
|
return landed;
|
|
634
663
|
}
|
|
635
|
-
case "duplicate": return drop(
|
|
664
|
+
case "duplicate": return drop(volume_4, {
|
|
636
665
|
kind: "workspace",
|
|
637
|
-
...
|
|
666
|
+
...volume_4,
|
|
638
667
|
paths: paths_1
|
|
639
668
|
}, directory_0, "copy", `Duplicate of ${subject(paths_1)}`);
|
|
640
669
|
case "new-folder": {
|
|
641
|
-
const
|
|
642
|
-
const
|
|
643
|
-
await
|
|
644
|
-
return
|
|
670
|
+
const path_10 = await exclusive("The folder couldn’t be created", async () => {
|
|
671
|
+
const path_9 = await newWorkspaceFolderPath(volume_4.source, directory_0);
|
|
672
|
+
await volume_4.source.mkdir(path_9);
|
|
673
|
+
return path_9;
|
|
645
674
|
});
|
|
646
|
-
await reload(
|
|
647
|
-
if (!
|
|
648
|
-
if (!
|
|
675
|
+
await reload(volume_4);
|
|
676
|
+
if (!path_10) return;
|
|
677
|
+
if (!volume_4.linked) record({
|
|
649
678
|
label: "New Folder",
|
|
650
|
-
volume:
|
|
679
|
+
volume: volume_4,
|
|
651
680
|
operations: [{
|
|
652
681
|
kind: "trash",
|
|
653
|
-
path:
|
|
682
|
+
path: path_10
|
|
654
683
|
}]
|
|
655
684
|
});
|
|
656
|
-
return [
|
|
685
|
+
return [path_10];
|
|
657
686
|
}
|
|
658
|
-
case "trash": return trash(
|
|
659
|
-
case "put-back": return apply(
|
|
687
|
+
case "trash": return trash(volume_4, paths_1);
|
|
688
|
+
case "put-back": return apply(volume_4, "Put Back", paths_1.map(_temp7));
|
|
660
689
|
case "empty-trash": return emptyTrash();
|
|
661
|
-
case "get-info": return getInfo?.(
|
|
690
|
+
case "get-info": return getInfo?.(volume_4, paths_1.length ? paths_1 : [directory_0]);
|
|
662
691
|
case "show-in-finder":
|
|
663
692
|
openFolder(workspaceDirname(paths_1.at(-1)));
|
|
664
693
|
return;
|
|
@@ -668,196 +697,197 @@ function useWorkspaceFileCommands(t0) {
|
|
|
668
697
|
}
|
|
669
698
|
};
|
|
670
699
|
};
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
$[
|
|
674
|
-
$[
|
|
675
|
-
$[
|
|
676
|
-
$[
|
|
677
|
-
$[
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
680
|
-
$[
|
|
681
|
-
$[
|
|
682
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
if ($[46] !== answer) {
|
|
691
|
-
t16 = (open) => !open && answer(false);
|
|
692
|
-
$[46] = answer;
|
|
693
|
-
$[47] = t16;
|
|
694
|
-
} else t16 = $[47];
|
|
695
|
-
let t17;
|
|
696
|
-
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
697
|
-
t17 = /* @__PURE__ */ jsx(AlertDialog.Backdrop, {});
|
|
698
|
-
$[48] = t17;
|
|
699
|
-
} else t17 = $[48];
|
|
700
|
-
const t18 = confirm?.title;
|
|
700
|
+
$[39] = apply;
|
|
701
|
+
$[40] = clipboard;
|
|
702
|
+
$[41] = drop;
|
|
703
|
+
$[42] = emptyTrash;
|
|
704
|
+
$[43] = exclusive;
|
|
705
|
+
$[44] = getInfo;
|
|
706
|
+
$[45] = locked;
|
|
707
|
+
$[46] = openFolder;
|
|
708
|
+
$[47] = redoStack.length;
|
|
709
|
+
$[48] = reload;
|
|
710
|
+
$[49] = step;
|
|
711
|
+
$[50] = transfer;
|
|
712
|
+
$[51] = trash;
|
|
713
|
+
$[52] = trashFull;
|
|
714
|
+
$[53] = undoStack.length;
|
|
715
|
+
$[54] = t17;
|
|
716
|
+
} else t17 = $[54];
|
|
717
|
+
const commands = t17;
|
|
718
|
+
const t18 = confirm !== null;
|
|
701
719
|
let t19;
|
|
702
|
-
if ($[
|
|
703
|
-
t19 =
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
} else t19 = $[
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
} else t21 = $[52];
|
|
720
|
+
if ($[55] !== answer) {
|
|
721
|
+
t19 = (open) => !open && answer(false);
|
|
722
|
+
$[55] = answer;
|
|
723
|
+
$[56] = t19;
|
|
724
|
+
} else t19 = $[56];
|
|
725
|
+
let t20;
|
|
726
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
727
|
+
t20 = /* @__PURE__ */ jsx(AlertDialog.Backdrop, {});
|
|
728
|
+
$[57] = t20;
|
|
729
|
+
} else t20 = $[57];
|
|
730
|
+
const t21 = confirm?.title;
|
|
714
731
|
let t22;
|
|
715
|
-
if ($[
|
|
716
|
-
t22 = /* @__PURE__ */
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
let t23;
|
|
722
|
-
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
723
|
-
t23 = /* @__PURE__ */ jsx(AlertDialog.Close, { children: "Cancel" });
|
|
724
|
-
$[56] = t23;
|
|
725
|
-
} else t23 = $[56];
|
|
732
|
+
if ($[58] !== t21) {
|
|
733
|
+
t22 = /* @__PURE__ */ jsx(AlertDialog.Title, { children: t21 });
|
|
734
|
+
$[58] = t21;
|
|
735
|
+
$[59] = t22;
|
|
736
|
+
} else t22 = $[59];
|
|
737
|
+
const t23 = confirm?.detail;
|
|
726
738
|
let t24;
|
|
727
|
-
if ($[
|
|
728
|
-
t24 = (
|
|
729
|
-
$[
|
|
730
|
-
$[
|
|
731
|
-
} else t24 = $[
|
|
732
|
-
|
|
739
|
+
if ($[60] !== t23) {
|
|
740
|
+
t24 = /* @__PURE__ */ jsx(AlertDialog.Description, { children: t23 });
|
|
741
|
+
$[60] = t23;
|
|
742
|
+
$[61] = t24;
|
|
743
|
+
} else t24 = $[61];
|
|
744
|
+
let t25;
|
|
745
|
+
if ($[62] !== t22 || $[63] !== t24) {
|
|
746
|
+
t25 = /* @__PURE__ */ jsxs(AlertDialog.Header, { children: [t22, t24] });
|
|
747
|
+
$[62] = t22;
|
|
748
|
+
$[63] = t24;
|
|
749
|
+
$[64] = t25;
|
|
750
|
+
} else t25 = $[64];
|
|
733
751
|
let t26;
|
|
734
|
-
if ($[
|
|
735
|
-
t26 = /* @__PURE__ */
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
children: t25
|
|
739
|
-
})] });
|
|
740
|
-
$[59] = t24;
|
|
741
|
-
$[60] = t25;
|
|
742
|
-
$[61] = t26;
|
|
743
|
-
} else t26 = $[61];
|
|
752
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
753
|
+
t26 = /* @__PURE__ */ jsx(AlertDialog.Close, { children: "Cancel" });
|
|
754
|
+
$[65] = t26;
|
|
755
|
+
} else t26 = $[65];
|
|
744
756
|
let t27;
|
|
745
|
-
if ($[
|
|
746
|
-
t27 =
|
|
747
|
-
|
|
748
|
-
children: [t22, t26]
|
|
749
|
-
}) })] });
|
|
750
|
-
$[62] = t22;
|
|
751
|
-
$[63] = t26;
|
|
752
|
-
$[64] = t27;
|
|
753
|
-
} else t27 = $[64];
|
|
754
|
-
let t28;
|
|
755
|
-
if ($[65] !== t15 || $[66] !== t16 || $[67] !== t27) {
|
|
756
|
-
t28 = /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
757
|
-
open: t15,
|
|
758
|
-
onOpenChange: t16,
|
|
759
|
-
children: t27
|
|
760
|
-
});
|
|
761
|
-
$[65] = t15;
|
|
762
|
-
$[66] = t16;
|
|
757
|
+
if ($[66] !== answer) {
|
|
758
|
+
t27 = () => answer(true);
|
|
759
|
+
$[66] = answer;
|
|
763
760
|
$[67] = t27;
|
|
764
|
-
|
|
765
|
-
|
|
761
|
+
} else t27 = $[67];
|
|
762
|
+
const t28 = confirm?.action;
|
|
766
763
|
let t29;
|
|
767
|
-
if ($[
|
|
768
|
-
t29 = /* @__PURE__ */ jsxs(
|
|
764
|
+
if ($[68] !== t27 || $[69] !== t28) {
|
|
765
|
+
t29 = /* @__PURE__ */ jsxs(AlertDialog.Footer, { children: [t26, /* @__PURE__ */ jsx(Button, {
|
|
766
|
+
color: "destructive",
|
|
767
|
+
onClick: t27,
|
|
768
|
+
children: t28
|
|
769
|
+
})] });
|
|
770
|
+
$[68] = t27;
|
|
769
771
|
$[69] = t28;
|
|
770
|
-
$[70] =
|
|
771
|
-
|
|
772
|
-
} else t29 = $[71];
|
|
773
|
-
const dialogs = t29;
|
|
772
|
+
$[70] = t29;
|
|
773
|
+
} else t29 = $[70];
|
|
774
774
|
let t30;
|
|
775
|
-
if ($[72] !==
|
|
776
|
-
t30 =
|
|
777
|
-
|
|
775
|
+
if ($[71] !== t25 || $[72] !== t29) {
|
|
776
|
+
t30 = /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [t20, /* @__PURE__ */ jsx(AlertDialog.Viewport, { children: /* @__PURE__ */ jsxs(AlertDialog.Popup, {
|
|
777
|
+
size: "sm",
|
|
778
|
+
children: [t25, t29]
|
|
779
|
+
}) })] });
|
|
780
|
+
$[71] = t25;
|
|
781
|
+
$[72] = t29;
|
|
778
782
|
$[73] = t30;
|
|
779
783
|
} else t30 = $[73];
|
|
780
784
|
let t31;
|
|
781
|
-
if ($[74] !==
|
|
782
|
-
t31 =
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
785
|
+
if ($[74] !== t18 || $[75] !== t19 || $[76] !== t30) {
|
|
786
|
+
t31 = /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
787
|
+
open: t18,
|
|
788
|
+
onOpenChange: t19,
|
|
789
|
+
children: t30
|
|
790
|
+
});
|
|
791
|
+
$[74] = t18;
|
|
792
|
+
$[75] = t19;
|
|
793
|
+
$[76] = t30;
|
|
794
|
+
$[77] = t31;
|
|
795
|
+
} else t31 = $[77];
|
|
786
796
|
let t32;
|
|
797
|
+
if ($[78] !== t31 || $[79] !== transfer.dialogs) {
|
|
798
|
+
t32 = /* @__PURE__ */ jsxs(Fragment, { children: [transfer.dialogs, t31] });
|
|
799
|
+
$[78] = t31;
|
|
800
|
+
$[79] = transfer.dialogs;
|
|
801
|
+
$[80] = t32;
|
|
802
|
+
} else t32 = $[80];
|
|
803
|
+
const dialogs = t32;
|
|
787
804
|
let t33;
|
|
788
|
-
if ($[
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
$[
|
|
792
|
-
|
|
793
|
-
$[78] = t33;
|
|
794
|
-
} else {
|
|
795
|
-
t32 = $[77];
|
|
796
|
-
t33 = $[78];
|
|
797
|
-
}
|
|
805
|
+
if ($[81] !== undoStack) {
|
|
806
|
+
t33 = undoStack.at(-1)?.label ?? null;
|
|
807
|
+
$[81] = undoStack;
|
|
808
|
+
$[82] = t33;
|
|
809
|
+
} else t33 = $[82];
|
|
798
810
|
let t34;
|
|
799
|
-
if ($[
|
|
800
|
-
t34 = ()
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
} else t34 = $[
|
|
811
|
+
if ($[83] !== redoStack) {
|
|
812
|
+
t34 = redoStack.at(-1)?.label ?? null;
|
|
813
|
+
$[83] = redoStack;
|
|
814
|
+
$[84] = t34;
|
|
815
|
+
} else t34 = $[84];
|
|
804
816
|
let t35;
|
|
805
|
-
if ($[81] !== home.source || $[82] !== openFolder) {
|
|
806
|
-
t35 = () => void home.source.mkdir(WORKSPACE_TRASH, { recursive: true }).then(() => openFolder(WORKSPACE_TRASH));
|
|
807
|
-
$[81] = home.source;
|
|
808
|
-
$[82] = openFolder;
|
|
809
|
-
$[83] = t35;
|
|
810
|
-
} else t35 = $[83];
|
|
811
817
|
let t36;
|
|
812
|
-
if ($[
|
|
813
|
-
|
|
814
|
-
|
|
818
|
+
if ($[85] !== step) {
|
|
819
|
+
t35 = () => void step("undo");
|
|
820
|
+
t36 = () => void step("redo");
|
|
821
|
+
$[85] = step;
|
|
822
|
+
$[86] = t35;
|
|
823
|
+
$[87] = t36;
|
|
824
|
+
} else {
|
|
825
|
+
t35 = $[86];
|
|
826
|
+
t36 = $[87];
|
|
827
|
+
}
|
|
828
|
+
let t37;
|
|
829
|
+
if ($[88] !== emptyTrash) {
|
|
830
|
+
t37 = () => void emptyTrash();
|
|
831
|
+
$[88] = emptyTrash;
|
|
832
|
+
$[89] = t37;
|
|
833
|
+
} else t37 = $[89];
|
|
834
|
+
let t38;
|
|
835
|
+
if ($[90] !== home.source || $[91] !== openFolder) {
|
|
836
|
+
t38 = () => void home.source.mkdir(WORKSPACE_TRASH, { recursive: true }).then(() => openFolder(WORKSPACE_TRASH));
|
|
837
|
+
$[90] = home.source;
|
|
838
|
+
$[91] = openFolder;
|
|
839
|
+
$[92] = t38;
|
|
840
|
+
} else t38 = $[92];
|
|
841
|
+
let t39;
|
|
842
|
+
if ($[93] !== home || $[94] !== trash) {
|
|
843
|
+
t39 = (t40) => {
|
|
844
|
+
const { sourceKey, paths: paths_2 } = t40;
|
|
815
845
|
if (sourceKey === home.sourceKey) trash(home, paths_2);
|
|
816
846
|
};
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
} else
|
|
821
|
-
let
|
|
822
|
-
if ($[
|
|
823
|
-
|
|
847
|
+
$[93] = home;
|
|
848
|
+
$[94] = trash;
|
|
849
|
+
$[95] = t39;
|
|
850
|
+
} else t39 = $[95];
|
|
851
|
+
let t40;
|
|
852
|
+
if ($[96] !== commands || $[97] !== dialogs || $[98] !== drop || $[99] !== home || $[100] !== t33 || $[101] !== t34 || $[102] !== t35 || $[103] !== t36 || $[104] !== t37 || $[105] !== t38 || $[106] !== t39 || $[107] !== transfer.cancel || $[108] !== transfer.transferring || $[109] !== trashFull) {
|
|
853
|
+
t40 = {
|
|
824
854
|
home,
|
|
825
855
|
commands,
|
|
826
856
|
drop,
|
|
827
|
-
undoLabel:
|
|
828
|
-
redoLabel:
|
|
829
|
-
undo:
|
|
830
|
-
redo:
|
|
857
|
+
undoLabel: t33,
|
|
858
|
+
redoLabel: t34,
|
|
859
|
+
undo: t35,
|
|
860
|
+
redo: t36,
|
|
831
861
|
trashFull,
|
|
832
|
-
emptyTrash:
|
|
833
|
-
openTrash:
|
|
834
|
-
trashDrop:
|
|
862
|
+
emptyTrash: t37,
|
|
863
|
+
openTrash: t38,
|
|
864
|
+
trashDrop: t39,
|
|
835
865
|
transferring: transfer.transferring,
|
|
836
866
|
cancelTransfer: transfer.cancel,
|
|
837
867
|
dialogs
|
|
838
868
|
};
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
} else
|
|
855
|
-
return
|
|
869
|
+
$[96] = commands;
|
|
870
|
+
$[97] = dialogs;
|
|
871
|
+
$[98] = drop;
|
|
872
|
+
$[99] = home;
|
|
873
|
+
$[100] = t33;
|
|
874
|
+
$[101] = t34;
|
|
875
|
+
$[102] = t35;
|
|
876
|
+
$[103] = t36;
|
|
877
|
+
$[104] = t37;
|
|
878
|
+
$[105] = t38;
|
|
879
|
+
$[106] = t39;
|
|
880
|
+
$[107] = transfer.cancel;
|
|
881
|
+
$[108] = transfer.transferring;
|
|
882
|
+
$[109] = trashFull;
|
|
883
|
+
$[110] = t40;
|
|
884
|
+
} else t40 = $[110];
|
|
885
|
+
return t40;
|
|
856
886
|
}
|
|
857
|
-
function _temp7(
|
|
887
|
+
function _temp7(path_8) {
|
|
858
888
|
return {
|
|
859
889
|
kind: "put-back",
|
|
860
|
-
path:
|
|
890
|
+
path: path_8
|
|
861
891
|
};
|
|
862
892
|
}
|
|
863
893
|
function _temp6(file) {
|
|
@@ -871,13 +901,13 @@ function _temp5(stack_0) {
|
|
|
871
901
|
return stack_0.slice(0, -1);
|
|
872
902
|
}
|
|
873
903
|
function _temp4(t0) {
|
|
874
|
-
const { path:
|
|
875
|
-
return
|
|
904
|
+
const { path: path_5 } = t0;
|
|
905
|
+
return path_5;
|
|
876
906
|
}
|
|
877
|
-
function _temp3(
|
|
907
|
+
function _temp3(path_1) {
|
|
878
908
|
return {
|
|
879
909
|
kind: "trash",
|
|
880
|
-
path
|
|
910
|
+
path: path_1
|
|
881
911
|
};
|
|
882
912
|
}
|
|
883
913
|
function _temp2(error) {
|
|
@@ -887,4 +917,4 @@ function _temp(value) {
|
|
|
887
917
|
return { value };
|
|
888
918
|
}
|
|
889
919
|
//#endregion
|
|
890
|
-
export { WORKSPACE_TRASH, isHiddenWorkspaceEntry, isInWorkspaceTrash, runWorkspaceFileOperations, useWorkspaceFileCommands, workspaceFileCommandForKey, workspaceFileShortcut, workspaceRenameTarget, workspaceTrashIsFull };
|
|
920
|
+
export { WORKSPACE_TRASH, isHiddenWorkspaceEntry, isInWorkspaceTrash, isWithin, runWorkspaceFileOperations, useWorkspaceFileCommands, workspaceFileCommandForKey, workspaceFileShortcut, workspaceRenameTarget, workspaceTrashIsFull };
|