@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
|
@@ -4,11 +4,12 @@ import { i as PortalContext } from "./context-Ddsp8HgD.js";
|
|
|
4
4
|
import { FormattedDate } from "./components/foundations/FormattedDate.js";
|
|
5
5
|
import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
6
6
|
import { SearchField } from "./components/foundations/SearchField.js";
|
|
7
|
+
import { i as fileGridOption, n as FileGrid } from "./ComputerFileThumbnail-CXHy127c.js";
|
|
7
8
|
import { describeWorkspaceFile } from "./components/agents-sdk/WorkspaceFile.js";
|
|
8
9
|
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-CjfzpN6X.js";
|
|
9
10
|
import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
|
|
10
|
-
import { a as fileGridOption, i as FileGrid, n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-9V-UFpjj.js";
|
|
11
11
|
import { ContextMenu } from "./components/foundations/ContextMenu.js";
|
|
12
|
+
import { n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-DODjsfhH.js";
|
|
12
13
|
import { isHiddenWorkspaceEntry } from "./components/agents-sdk/WorkspaceFileCommands.js";
|
|
13
14
|
import { c } from "react/compiler-runtime";
|
|
14
15
|
import * as React from "react";
|
|
@@ -59,7 +60,7 @@ function readGeometry(list, previous) {
|
|
|
59
60
|
* neighbours and the tab stop stay drawn while scrolled away, so the arrows
|
|
60
61
|
* walk on from them and bring them back into view.
|
|
61
62
|
*/
|
|
62
|
-
function WorkspaceBrowserEntries({ entries, layout, view, isSelected, tabStop, renaming, dropPath, draggable, foldersOpen, finder, renderFileLink
|
|
63
|
+
function WorkspaceBrowserEntries({ entries, layout, view, isSelected, tabStop, renaming, dropPath, draggable, foldersOpen, finder, renderFileLink }) {
|
|
63
64
|
const listRef = React.useRef(null);
|
|
64
65
|
const latest = React.useRef(view);
|
|
65
66
|
React.useLayoutEffect(() => {
|
|
@@ -169,7 +170,6 @@ function WorkspaceBrowserEntries({ entries, layout, view, isSelected, tabStop, r
|
|
|
169
170
|
disabled: entry.type === "directory" && !foldersOpen,
|
|
170
171
|
finder,
|
|
171
172
|
renderFileLink,
|
|
172
|
-
renderThumbnail,
|
|
173
173
|
actions
|
|
174
174
|
}, entry.path);
|
|
175
175
|
}))
|
|
@@ -178,8 +178,8 @@ function WorkspaceBrowserEntries({ entries, layout, view, isSelected, tabStop, r
|
|
|
178
178
|
}
|
|
179
179
|
/** One entry's row, drawn again only when its own facts change. */
|
|
180
180
|
const WorkspaceBrowserEntry = React.memo(function WorkspaceBrowserEntry(t0) {
|
|
181
|
-
const $ = c(
|
|
182
|
-
const { entry, index, count, lane, offset, selected, tabStop, renaming, dropTarget, draggable, disabled, finder, renderFileLink,
|
|
181
|
+
const $ = c(64);
|
|
182
|
+
const { entry, index, count, lane, offset, selected, tabStop, renaming, dropTarget, draggable, disabled, finder, renderFileLink, actions } = t0;
|
|
183
183
|
let t1;
|
|
184
184
|
if ($[0] !== entry) {
|
|
185
185
|
t1 = describeWorkspaceFile(entry);
|
|
@@ -372,7 +372,7 @@ const WorkspaceBrowserEntry = React.memo(function WorkspaceBrowserEntry(t0) {
|
|
|
372
372
|
$[51] = t25;
|
|
373
373
|
} else t25 = $[51];
|
|
374
374
|
let t26;
|
|
375
|
-
if ($[52] !== actions.menuFinalFocus || $[53] !== entry || $[54] !== index || $[55] !== renaming || $[56] !==
|
|
375
|
+
if ($[52] !== actions.menuFinalFocus || $[53] !== entry || $[54] !== index || $[55] !== renaming || $[56] !== t12 || $[57] !== t14 || $[58] !== t22 || $[59] !== t23 || $[60] !== t24 || $[61] !== t25 || $[62] !== t9) {
|
|
376
376
|
t26 = /* @__PURE__ */ jsx(WorkspaceFileTile, {
|
|
377
377
|
className: "workspace-browser__entry",
|
|
378
378
|
"data-kind": entry.type,
|
|
@@ -381,7 +381,6 @@ const WorkspaceBrowserEntry = React.memo(function WorkspaceBrowserEntry(t0) {
|
|
|
381
381
|
style: t12,
|
|
382
382
|
entry,
|
|
383
383
|
classes: t13,
|
|
384
|
-
renderThumbnail,
|
|
385
384
|
renaming,
|
|
386
385
|
option: t14,
|
|
387
386
|
details: t22,
|
|
@@ -394,16 +393,15 @@ const WorkspaceBrowserEntry = React.memo(function WorkspaceBrowserEntry(t0) {
|
|
|
394
393
|
$[53] = entry;
|
|
395
394
|
$[54] = index;
|
|
396
395
|
$[55] = renaming;
|
|
397
|
-
$[56] =
|
|
398
|
-
$[57] =
|
|
399
|
-
$[58] =
|
|
400
|
-
$[59] =
|
|
401
|
-
$[60] =
|
|
402
|
-
$[61] =
|
|
403
|
-
$[62] =
|
|
404
|
-
$[63] =
|
|
405
|
-
|
|
406
|
-
} else t26 = $[64];
|
|
396
|
+
$[56] = t12;
|
|
397
|
+
$[57] = t14;
|
|
398
|
+
$[58] = t22;
|
|
399
|
+
$[59] = t23;
|
|
400
|
+
$[60] = t24;
|
|
401
|
+
$[61] = t25;
|
|
402
|
+
$[62] = t9;
|
|
403
|
+
$[63] = t26;
|
|
404
|
+
} else t26 = $[63];
|
|
407
405
|
return t26;
|
|
408
406
|
});
|
|
409
407
|
function WorkspaceEntryMenu({ path }) {
|
|
@@ -435,8 +433,8 @@ function listed(entriesByDirectory, directory) {
|
|
|
435
433
|
}
|
|
436
434
|
/** Workspace tree and filter surface, usable independently from the file preview. */
|
|
437
435
|
function WorkspaceBrowser(t0) {
|
|
438
|
-
const $ = c(
|
|
439
|
-
const { workspace, header: t1, title: t2, leading, actions, showFilter: t3, filterPlaceholder: t4, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink,
|
|
436
|
+
const $ = c(147);
|
|
437
|
+
const { workspace, header: t1, title: t2, leading, actions, showFilter: t3, filterPlaceholder: t4, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink, layout: t5, sort: t6, dragAndDrop, commands, renderPreview, actionsRef } = t0;
|
|
440
438
|
const header = t1 === void 0 ? "bar" : t1;
|
|
441
439
|
const title = t2 === void 0 ? "Workspace" : t2;
|
|
442
440
|
const showFilter = t3 === void 0 ? true : t3;
|
|
@@ -530,63 +528,60 @@ function WorkspaceBrowser(t0) {
|
|
|
530
528
|
} else t12 = $[18];
|
|
531
529
|
const rootEntries = t12;
|
|
532
530
|
let t13;
|
|
533
|
-
if ($[19] !== entriesByDirectory || $[20] !== renderFileLink || $[21] !==
|
|
531
|
+
if ($[19] !== entriesByDirectory || $[20] !== renderFileLink || $[21] !== root || $[22] !== sort) {
|
|
534
532
|
const renderEntry = (entry_0) => {
|
|
535
533
|
if (entry_0.type === "directory") return /* @__PURE__ */ jsx(FileTreeFolder, {
|
|
536
534
|
path: entry_0.path,
|
|
537
535
|
name: entry_0.name,
|
|
538
|
-
icon: renderThumbnail?.(entry_0) ?? void 0,
|
|
539
536
|
children: sortEntries(listed(entriesByDirectory, entry_0.path), sort).map(renderEntry)
|
|
540
537
|
}, entry_0.path);
|
|
541
538
|
return /* @__PURE__ */ jsx(FileTreeFile, {
|
|
542
539
|
path: entry_0.path,
|
|
543
540
|
name: entry_0.name,
|
|
544
|
-
icon: renderThumbnail?.(entry_0) ?? void 0,
|
|
545
541
|
render: renderFileLink?.(entry_0.path)
|
|
546
542
|
}, entry_0.path);
|
|
547
543
|
};
|
|
548
544
|
t13 = sortEntries(listed(entriesByDirectory, root), sort).map(renderEntry);
|
|
549
545
|
$[19] = entriesByDirectory;
|
|
550
546
|
$[20] = renderFileLink;
|
|
551
|
-
$[21] =
|
|
552
|
-
$[22] =
|
|
553
|
-
$[23] =
|
|
554
|
-
|
|
555
|
-
} else t13 = $[24];
|
|
547
|
+
$[21] = root;
|
|
548
|
+
$[22] = sort;
|
|
549
|
+
$[23] = t13;
|
|
550
|
+
} else t13 = $[23];
|
|
556
551
|
const tree = t13;
|
|
557
552
|
let t14;
|
|
558
|
-
if ($[
|
|
553
|
+
if ($[24] !== filterQuery || $[25] !== rootEntries || $[26] !== sort) {
|
|
559
554
|
let t15;
|
|
560
|
-
if ($[
|
|
555
|
+
if ($[28] !== filterQuery) {
|
|
561
556
|
t15 = (entry_1) => !filterQuery || entry_1.name.toLowerCase().includes(filterQuery);
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
} else t15 = $[
|
|
557
|
+
$[28] = filterQuery;
|
|
558
|
+
$[29] = t15;
|
|
559
|
+
} else t15 = $[29];
|
|
565
560
|
t14 = sortEntries(rootEntries.filter(t15), sort);
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
} else t14 = $[
|
|
561
|
+
$[24] = filterQuery;
|
|
562
|
+
$[25] = rootEntries;
|
|
563
|
+
$[26] = sort;
|
|
564
|
+
$[27] = t14;
|
|
565
|
+
} else t14 = $[27];
|
|
571
566
|
const visibleEntries = t14;
|
|
572
567
|
let t15;
|
|
573
|
-
if ($[
|
|
568
|
+
if ($[30] !== visibleEntries) {
|
|
574
569
|
t15 = visibleEntries.map(_temp);
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
} else t15 = $[
|
|
570
|
+
$[30] = visibleEntries;
|
|
571
|
+
$[31] = t15;
|
|
572
|
+
} else t15 = $[31];
|
|
578
573
|
const order = t15;
|
|
579
574
|
const finder = layout !== "tree" && Boolean(commands);
|
|
580
575
|
let t16;
|
|
581
|
-
if ($[
|
|
576
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
582
577
|
t16 = (path_0) => [...browserRef.current?.querySelectorAll("[data-workspace-path]") ?? []].find((element) => element.dataset.workspacePath === path_0)?.click();
|
|
583
|
-
$[
|
|
584
|
-
} else t16 = $[
|
|
578
|
+
$[32] = t16;
|
|
579
|
+
} else t16 = $[32];
|
|
585
580
|
const openRow = t16;
|
|
586
581
|
const t17 = finder ? commands : void 0;
|
|
587
582
|
const t18 = finder && Boolean(renderPreview);
|
|
588
583
|
let t19;
|
|
589
|
-
if ($[
|
|
584
|
+
if ($[33] !== finder || $[34] !== order || $[35] !== root || $[36] !== t17 || $[37] !== t18) {
|
|
590
585
|
t19 = {
|
|
591
586
|
order,
|
|
592
587
|
directory: root,
|
|
@@ -596,36 +591,36 @@ function WorkspaceBrowser(t0) {
|
|
|
596
591
|
quickLook: t18,
|
|
597
592
|
open: openRow
|
|
598
593
|
};
|
|
599
|
-
$[
|
|
600
|
-
$[
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
} else t19 = $[
|
|
594
|
+
$[33] = finder;
|
|
595
|
+
$[34] = order;
|
|
596
|
+
$[35] = root;
|
|
597
|
+
$[36] = t17;
|
|
598
|
+
$[37] = t18;
|
|
599
|
+
$[38] = t19;
|
|
600
|
+
} else t19 = $[38];
|
|
606
601
|
const view = useWorkspaceSelection(t19);
|
|
607
602
|
let t20;
|
|
608
|
-
if ($[
|
|
603
|
+
if ($[39] !== view) {
|
|
609
604
|
t20 = () => ({ run: (command) => void view.perform(command) });
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
} else t20 = $[
|
|
605
|
+
$[39] = view;
|
|
606
|
+
$[40] = t20;
|
|
607
|
+
} else t20 = $[40];
|
|
613
608
|
React.useImperativeHandle(actionsRef, t20);
|
|
614
609
|
let t21;
|
|
615
|
-
if ($[
|
|
610
|
+
if ($[41] !== order || $[42] !== selectedPath || $[43] !== view.selected) {
|
|
616
611
|
t21 = [
|
|
617
612
|
view.selected.at(-1),
|
|
618
613
|
selectedPath,
|
|
619
614
|
order[0]
|
|
620
615
|
].find((path_1) => path_1 != null && order.includes(path_1));
|
|
621
|
-
$[
|
|
622
|
-
$[
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
} else t21 = $[
|
|
616
|
+
$[41] = order;
|
|
617
|
+
$[42] = selectedPath;
|
|
618
|
+
$[43] = view.selected;
|
|
619
|
+
$[44] = t21;
|
|
620
|
+
} else t21 = $[44];
|
|
626
621
|
const tabStopPath = t21;
|
|
627
622
|
let t22;
|
|
628
|
-
if ($[
|
|
623
|
+
if ($[45] !== dragSource || $[46] !== dropTarget || $[47] !== onDirectoryOpen || $[48] !== view) {
|
|
629
624
|
t22 = (entry_3) => {
|
|
630
625
|
const paths = view.isSelected(entry_3.path) ? view.selected : [entry_3.path];
|
|
631
626
|
return {
|
|
@@ -634,26 +629,26 @@ function WorkspaceBrowser(t0) {
|
|
|
634
629
|
...view.optionProps(entry_3.path, (event, pressed) => dragSource(pressed).onPointerDown?.(event))
|
|
635
630
|
};
|
|
636
631
|
};
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
} else t22 = $[
|
|
632
|
+
$[45] = dragSource;
|
|
633
|
+
$[46] = dropTarget;
|
|
634
|
+
$[47] = onDirectoryOpen;
|
|
635
|
+
$[48] = view;
|
|
636
|
+
$[49] = t22;
|
|
637
|
+
} else t22 = $[49];
|
|
643
638
|
let t23;
|
|
644
|
-
if ($[
|
|
639
|
+
if ($[50] !== view) {
|
|
645
640
|
t23 = (path_2) => view.menuItems(path_2);
|
|
646
|
-
$[
|
|
647
|
-
$[
|
|
648
|
-
} else t23 = $[
|
|
641
|
+
$[50] = view;
|
|
642
|
+
$[51] = t23;
|
|
643
|
+
} else t23 = $[51];
|
|
649
644
|
let t24;
|
|
650
|
-
if ($[
|
|
645
|
+
if ($[52] !== view) {
|
|
651
646
|
t24 = (entry_4) => view.renameField(entry_4.path, entry_4.name, entry_4.type === "directory");
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
} else t24 = $[
|
|
647
|
+
$[52] = view;
|
|
648
|
+
$[53] = t24;
|
|
649
|
+
} else t24 = $[53];
|
|
655
650
|
let t25;
|
|
656
|
-
if ($[
|
|
651
|
+
if ($[54] !== handleSelect || $[55] !== t22 || $[56] !== t23 || $[57] !== t24 || $[58] !== view.menuFinalFocus) {
|
|
657
652
|
t25 = {
|
|
658
653
|
handlers: t22,
|
|
659
654
|
activate: handleSelect,
|
|
@@ -661,27 +656,27 @@ function WorkspaceBrowser(t0) {
|
|
|
661
656
|
menuFinalFocus: view.menuFinalFocus,
|
|
662
657
|
renameField: t24
|
|
663
658
|
};
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
} else t25 = $[
|
|
659
|
+
$[54] = handleSelect;
|
|
660
|
+
$[55] = t22;
|
|
661
|
+
$[56] = t23;
|
|
662
|
+
$[57] = t24;
|
|
663
|
+
$[58] = view.menuFinalFocus;
|
|
664
|
+
$[59] = t25;
|
|
665
|
+
} else t25 = $[59];
|
|
671
666
|
const entryView = t25;
|
|
672
667
|
const filteredTree = layout === "tree" && filterQuery !== "";
|
|
673
668
|
let t26;
|
|
674
|
-
if ($[
|
|
669
|
+
if ($[60] !== entryByPath || $[61] !== filteredTree || $[62] !== rootEntries.length) {
|
|
675
670
|
t26 = filteredTree ? [...entryByPath.values()].filter(_temp2).length : rootEntries.length;
|
|
676
|
-
$[
|
|
677
|
-
$[
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
680
|
-
} else t26 = $[
|
|
671
|
+
$[60] = entryByPath;
|
|
672
|
+
$[61] = filteredTree;
|
|
673
|
+
$[62] = rootEntries.length;
|
|
674
|
+
$[63] = t26;
|
|
675
|
+
} else t26 = $[63];
|
|
681
676
|
const totalCount = t26;
|
|
682
677
|
const visibleCount = filteredTree ? filteredFiles.length : visibleEntries.length;
|
|
683
678
|
let t27;
|
|
684
|
-
if ($[
|
|
679
|
+
if ($[64] !== actions || $[65] !== header || $[66] !== info?.fileCount || $[67] !== isLoading || $[68] !== leading || $[69] !== refresh || $[70] !== title) {
|
|
685
680
|
t27 = header === "bar" ? /* @__PURE__ */ jsx(WorkspaceHeader, {
|
|
686
681
|
title,
|
|
687
682
|
fileCount: info?.fileCount,
|
|
@@ -690,45 +685,45 @@ function WorkspaceBrowser(t0) {
|
|
|
690
685
|
isRefreshing: isLoading,
|
|
691
686
|
onRefresh: refresh
|
|
692
687
|
}) : null;
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
$[
|
|
701
|
-
} else t27 = $[
|
|
688
|
+
$[64] = actions;
|
|
689
|
+
$[65] = header;
|
|
690
|
+
$[66] = info?.fileCount;
|
|
691
|
+
$[67] = isLoading;
|
|
692
|
+
$[68] = leading;
|
|
693
|
+
$[69] = refresh;
|
|
694
|
+
$[70] = title;
|
|
695
|
+
$[71] = t27;
|
|
696
|
+
} else t27 = $[71];
|
|
702
697
|
const t28 = !finder;
|
|
703
698
|
let t29;
|
|
704
|
-
if ($[
|
|
699
|
+
if ($[72] !== dragAndDrop || $[73] !== dropTarget || $[74] !== root) {
|
|
705
700
|
t29 = dragAndDrop ? dropTarget(root) : {};
|
|
706
|
-
$[
|
|
707
|
-
$[
|
|
708
|
-
$[
|
|
709
|
-
$[
|
|
710
|
-
} else t29 = $[
|
|
701
|
+
$[72] = dragAndDrop;
|
|
702
|
+
$[73] = dropTarget;
|
|
703
|
+
$[74] = root;
|
|
704
|
+
$[75] = t29;
|
|
705
|
+
} else t29 = $[75];
|
|
711
706
|
let t30;
|
|
712
|
-
if ($[
|
|
707
|
+
if ($[76] !== finder || $[77] !== view.surfaceProps) {
|
|
713
708
|
t30 = finder ? view.surfaceProps : {};
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
} else t30 = $[
|
|
709
|
+
$[76] = finder;
|
|
710
|
+
$[77] = view.surfaceProps;
|
|
711
|
+
$[78] = t30;
|
|
712
|
+
} else t30 = $[78];
|
|
718
713
|
let t31;
|
|
719
|
-
if ($[
|
|
714
|
+
if ($[79] !== finder || $[80] !== view.surfaceProps) {
|
|
720
715
|
t31 = (event_0) => {
|
|
721
716
|
if (!finder) return;
|
|
722
717
|
view.surfaceProps.onPointerDown(event_0);
|
|
723
718
|
const target_0 = event_0.target;
|
|
724
719
|
if (target_0 instanceof Element && !target_0.closest("[data-workspace-path], input")) event_0.currentTarget.focus({ preventScroll: true });
|
|
725
720
|
};
|
|
726
|
-
$[
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
729
|
-
} else t31 = $[
|
|
721
|
+
$[79] = finder;
|
|
722
|
+
$[80] = view.surfaceProps;
|
|
723
|
+
$[81] = t31;
|
|
724
|
+
} else t31 = $[81];
|
|
730
725
|
let t32;
|
|
731
|
-
if ($[
|
|
726
|
+
if ($[82] !== t29 || $[83] !== t30 || $[84] !== t31) {
|
|
732
727
|
t32 = /* @__PURE__ */ jsx("div", {
|
|
733
728
|
...t29,
|
|
734
729
|
...t30,
|
|
@@ -740,13 +735,13 @@ function WorkspaceBrowser(t0) {
|
|
|
740
735
|
tabIndex: -1,
|
|
741
736
|
onPointerDown: t31
|
|
742
737
|
});
|
|
743
|
-
$[
|
|
744
|
-
$[
|
|
745
|
-
$[
|
|
746
|
-
$[
|
|
747
|
-
} else t32 = $[
|
|
738
|
+
$[82] = t29;
|
|
739
|
+
$[83] = t30;
|
|
740
|
+
$[84] = t31;
|
|
741
|
+
$[85] = t32;
|
|
742
|
+
} else t32 = $[85];
|
|
748
743
|
let t33;
|
|
749
|
-
if ($[
|
|
744
|
+
if ($[86] !== currentFilter || $[87] !== filter || $[88] !== filterPlaceholder || $[89] !== onFilterChange || $[90] !== showFilter) {
|
|
750
745
|
t33 = showFilter ? /* @__PURE__ */ jsxs(SearchField.Root, {
|
|
751
746
|
className: "workspace-explorer__filter",
|
|
752
747
|
name: "workspace-filter",
|
|
@@ -763,15 +758,15 @@ function WorkspaceBrowser(t0) {
|
|
|
763
758
|
autoComplete: "off"
|
|
764
759
|
})]
|
|
765
760
|
}) : null;
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
$[
|
|
772
|
-
} else t33 = $[
|
|
761
|
+
$[86] = currentFilter;
|
|
762
|
+
$[87] = filter;
|
|
763
|
+
$[88] = filterPlaceholder;
|
|
764
|
+
$[89] = onFilterChange;
|
|
765
|
+
$[90] = showFilter;
|
|
766
|
+
$[91] = t33;
|
|
767
|
+
} else t33 = $[91];
|
|
773
768
|
let t34;
|
|
774
|
-
if ($[
|
|
769
|
+
if ($[92] !== layout) {
|
|
775
770
|
t34 = layout === "list" ? /* @__PURE__ */ jsxs("div", {
|
|
776
771
|
className: "workspace-browser__columns",
|
|
777
772
|
children: [
|
|
@@ -794,11 +789,11 @@ function WorkspaceBrowser(t0) {
|
|
|
794
789
|
})
|
|
795
790
|
]
|
|
796
791
|
}) : null;
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
} else t34 = $[
|
|
792
|
+
$[92] = layout;
|
|
793
|
+
$[93] = t34;
|
|
794
|
+
} else t34 = $[93];
|
|
800
795
|
let t35;
|
|
801
|
-
if ($[
|
|
796
|
+
if ($[94] !== dragAndDrop || $[95] !== dropPath || $[96] !== emptyState || $[97] !== entryView || $[98] !== error || $[99] !== expandedPaths || $[100] !== filterQuery || $[101] !== filteredFiles || $[102] !== finder || $[103] !== handleSelect || $[104] !== isLoading || $[105] !== layout || $[106] !== onDirectoryOpen || $[107] !== renderFileLink || $[108] !== rootEntries.length || $[109] !== selectedPath || $[110] !== setExpandedPaths || $[111] !== tabStopPath || $[112] !== tree || $[113] !== view || $[114] !== visibleEntries) {
|
|
802
797
|
t35 = error ? /* @__PURE__ */ jsx("div", {
|
|
803
798
|
className: "workspace-explorer__empty",
|
|
804
799
|
role: "alert",
|
|
@@ -814,8 +809,7 @@ function WorkspaceBrowser(t0) {
|
|
|
814
809
|
draggable: Boolean(dragAndDrop),
|
|
815
810
|
foldersOpen: Boolean(onDirectoryOpen),
|
|
816
811
|
finder,
|
|
817
|
-
renderFileLink
|
|
818
|
-
renderThumbnail
|
|
812
|
+
renderFileLink
|
|
819
813
|
}) : /* @__PURE__ */ jsx("div", {
|
|
820
814
|
className: "workspace-explorer__empty",
|
|
821
815
|
children: filterQuery ? "No matching files" : isLoading ? "Loading workspace..." : emptyState
|
|
@@ -828,7 +822,6 @@ function WorkspaceBrowser(t0) {
|
|
|
828
822
|
children: filteredFiles.map((entry_6) => /* @__PURE__ */ jsx(FileTreeFile, {
|
|
829
823
|
path: entry_6.path,
|
|
830
824
|
name: entry_6.path,
|
|
831
|
-
icon: renderThumbnail?.(entry_6) ?? void 0,
|
|
832
825
|
render: renderFileLink?.(entry_6.path)
|
|
833
826
|
}, entry_6.path))
|
|
834
827
|
}) : /* @__PURE__ */ jsx("div", {
|
|
@@ -848,33 +841,32 @@ function WorkspaceBrowser(t0) {
|
|
|
848
841
|
className: "workspace-explorer__empty",
|
|
849
842
|
children: isLoading ? "Loading workspace..." : emptyState ?? "No workspace files"
|
|
850
843
|
});
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
$[
|
|
856
|
-
$[
|
|
857
|
-
$[
|
|
858
|
-
$[
|
|
859
|
-
$[
|
|
860
|
-
$[
|
|
861
|
-
$[
|
|
862
|
-
$[
|
|
863
|
-
$[
|
|
864
|
-
$[
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
867
|
-
$[
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
|
|
874
|
-
} else t35 = $[117];
|
|
844
|
+
$[94] = dragAndDrop;
|
|
845
|
+
$[95] = dropPath;
|
|
846
|
+
$[96] = emptyState;
|
|
847
|
+
$[97] = entryView;
|
|
848
|
+
$[98] = error;
|
|
849
|
+
$[99] = expandedPaths;
|
|
850
|
+
$[100] = filterQuery;
|
|
851
|
+
$[101] = filteredFiles;
|
|
852
|
+
$[102] = finder;
|
|
853
|
+
$[103] = handleSelect;
|
|
854
|
+
$[104] = isLoading;
|
|
855
|
+
$[105] = layout;
|
|
856
|
+
$[106] = onDirectoryOpen;
|
|
857
|
+
$[107] = renderFileLink;
|
|
858
|
+
$[108] = rootEntries.length;
|
|
859
|
+
$[109] = selectedPath;
|
|
860
|
+
$[110] = setExpandedPaths;
|
|
861
|
+
$[111] = tabStopPath;
|
|
862
|
+
$[112] = tree;
|
|
863
|
+
$[113] = view;
|
|
864
|
+
$[114] = visibleEntries;
|
|
865
|
+
$[115] = t35;
|
|
866
|
+
} else t35 = $[115];
|
|
875
867
|
const t36 = finder ? view.statusElement : null;
|
|
876
868
|
let t37;
|
|
877
|
-
if ($[
|
|
869
|
+
if ($[116] !== finder || $[117] !== renderPreview || $[118] !== view.quickLook || $[119] !== visibleEntries) {
|
|
878
870
|
t37 = renderPreview && finder ? /* @__PURE__ */ jsx(WorkspaceQuickLook, {
|
|
879
871
|
quickLook: view.quickLook,
|
|
880
872
|
entries: visibleEntries,
|
|
@@ -883,14 +875,14 @@ function WorkspaceBrowser(t0) {
|
|
|
883
875
|
onOpen: (entry_7) => openRow(entry_7.path),
|
|
884
876
|
surface: browserRef
|
|
885
877
|
}) : null;
|
|
886
|
-
$[
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
889
|
-
$[
|
|
890
|
-
$[
|
|
891
|
-
} else t37 = $[
|
|
878
|
+
$[116] = finder;
|
|
879
|
+
$[117] = renderPreview;
|
|
880
|
+
$[118] = view.quickLook;
|
|
881
|
+
$[119] = visibleEntries;
|
|
882
|
+
$[120] = t37;
|
|
883
|
+
} else t37 = $[120];
|
|
892
884
|
let t38;
|
|
893
|
-
if ($[
|
|
885
|
+
if ($[121] !== t32 || $[122] !== t33 || $[123] !== t34 || $[124] !== t35 || $[125] !== t36 || $[126] !== t37 || $[127] !== view.marqueeElement) {
|
|
894
886
|
t38 = /* @__PURE__ */ jsxs(ContextMenu.Trigger, {
|
|
895
887
|
render: t32,
|
|
896
888
|
children: [
|
|
@@ -902,77 +894,77 @@ function WorkspaceBrowser(t0) {
|
|
|
902
894
|
t37
|
|
903
895
|
]
|
|
904
896
|
});
|
|
905
|
-
$[
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
} else t38 = $[
|
|
897
|
+
$[121] = t32;
|
|
898
|
+
$[122] = t33;
|
|
899
|
+
$[123] = t34;
|
|
900
|
+
$[124] = t35;
|
|
901
|
+
$[125] = t36;
|
|
902
|
+
$[126] = t37;
|
|
903
|
+
$[127] = view.marqueeElement;
|
|
904
|
+
$[128] = t38;
|
|
905
|
+
} else t38 = $[128];
|
|
914
906
|
const t39 = view.menuFinalFocus;
|
|
915
907
|
let t40;
|
|
916
|
-
if ($[
|
|
908
|
+
if ($[129] !== view) {
|
|
917
909
|
t40 = view.menuItems(null);
|
|
918
|
-
$[
|
|
919
|
-
$[
|
|
920
|
-
} else t40 = $[
|
|
910
|
+
$[129] = view;
|
|
911
|
+
$[130] = t40;
|
|
912
|
+
} else t40 = $[130];
|
|
921
913
|
let t41;
|
|
922
|
-
if ($[
|
|
914
|
+
if ($[131] !== t40 || $[132] !== view.menuFinalFocus) {
|
|
923
915
|
t41 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
|
|
924
916
|
finalFocus: t39,
|
|
925
917
|
children: t40
|
|
926
918
|
}) });
|
|
927
|
-
$[
|
|
928
|
-
$[
|
|
929
|
-
$[
|
|
930
|
-
} else t41 = $[
|
|
919
|
+
$[131] = t40;
|
|
920
|
+
$[132] = view.menuFinalFocus;
|
|
921
|
+
$[133] = t41;
|
|
922
|
+
} else t41 = $[133];
|
|
931
923
|
let t42;
|
|
932
|
-
if ($[
|
|
924
|
+
if ($[134] !== portalContainer || $[135] !== t41) {
|
|
933
925
|
t42 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
|
|
934
926
|
container: portalContainer,
|
|
935
927
|
children: t41
|
|
936
928
|
});
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
} else t42 = $[
|
|
929
|
+
$[134] = portalContainer;
|
|
930
|
+
$[135] = t41;
|
|
931
|
+
$[136] = t42;
|
|
932
|
+
} else t42 = $[136];
|
|
941
933
|
let t43;
|
|
942
|
-
if ($[
|
|
934
|
+
if ($[137] !== t28 || $[138] !== t38 || $[139] !== t42) {
|
|
943
935
|
t43 = /* @__PURE__ */ jsxs(ContextMenu.Root, {
|
|
944
936
|
disabled: t28,
|
|
945
937
|
children: [t38, t42]
|
|
946
938
|
});
|
|
947
|
-
$[
|
|
948
|
-
$[
|
|
949
|
-
$[
|
|
950
|
-
$[
|
|
951
|
-
} else t43 = $[
|
|
939
|
+
$[137] = t28;
|
|
940
|
+
$[138] = t38;
|
|
941
|
+
$[139] = t42;
|
|
942
|
+
$[140] = t43;
|
|
943
|
+
} else t43 = $[140];
|
|
952
944
|
const t44 = error ? "Workspace unavailable" : isLoading && totalCount === 0 ? "Loading workspace…" : filterQuery ? `${visibleCount} of ${totalCount} items` : `${totalCount} ${totalCount === 1 ? "item" : "items"}`;
|
|
953
945
|
let t45;
|
|
954
|
-
if ($[
|
|
946
|
+
if ($[141] !== t44) {
|
|
955
947
|
t45 = /* @__PURE__ */ jsx("div", {
|
|
956
948
|
className: "workspace-browser__footer",
|
|
957
949
|
role: "status",
|
|
958
950
|
"aria-atomic": "true",
|
|
959
951
|
children: t44
|
|
960
952
|
});
|
|
961
|
-
$[
|
|
962
|
-
$[
|
|
963
|
-
} else t45 = $[
|
|
953
|
+
$[141] = t44;
|
|
954
|
+
$[142] = t45;
|
|
955
|
+
} else t45 = $[142];
|
|
964
956
|
let t46;
|
|
965
|
-
if ($[
|
|
957
|
+
if ($[143] !== t27 || $[144] !== t43 || $[145] !== t45) {
|
|
966
958
|
t46 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
967
959
|
t27,
|
|
968
960
|
t43,
|
|
969
961
|
t45
|
|
970
962
|
] });
|
|
971
|
-
$[
|
|
972
|
-
$[
|
|
973
|
-
$[
|
|
974
|
-
$[
|
|
975
|
-
} else t46 = $[
|
|
963
|
+
$[143] = t27;
|
|
964
|
+
$[144] = t43;
|
|
965
|
+
$[145] = t45;
|
|
966
|
+
$[146] = t46;
|
|
967
|
+
} else t46 = $[146];
|
|
976
968
|
return t46;
|
|
977
969
|
}
|
|
978
970
|
function _temp2(entry_5) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as WorkspaceQueryOptions, g as WorkspaceQueryKey } from "./Workspace-
|
|
1
|
+
import { _ as WorkspaceQueryOptions, g as WorkspaceQueryKey } from "./Workspace-mZddFyvP.js";
|
|
2
2
|
import { QueryClient, QueryFunction } from "@tanstack/react-query";
|
|
3
3
|
//#region src/components/agents-sdk/WorkspaceConcept.d.ts
|
|
4
4
|
/**
|