@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
|
@@ -10,15 +10,17 @@ import { Menu } from "../foundations/Menu.js";
|
|
|
10
10
|
import { a as workspaceDirname, i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
|
|
11
11
|
import { downloadWorkspaceFile, saveWorkspaceFileAs } from "./WorkspaceFileTransfer.js";
|
|
12
12
|
import { r as useWorkspaceDragAndDrop } from "../../workspace-drag-B6hMXUNt.js";
|
|
13
|
-
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-
|
|
13
|
+
import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "../../AgentComputer-CFJxjMFE.js";
|
|
14
14
|
import { Menubar } from "../foundations/Menubar.js";
|
|
15
15
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
16
|
+
import { COMPUTER_APP_IDS } from "./ComputerAppIds.js";
|
|
16
17
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
17
|
-
import { n as computerAppTile } from "../../parts-
|
|
18
|
+
import { n as computerAppTile } from "../../parts-CPVz9l31.js";
|
|
18
19
|
import { SearchField } from "../foundations/SearchField.js";
|
|
19
20
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
21
|
+
import { a as hasModifier } from "../../ComputerFileThumbnail-CXHy127c.js";
|
|
20
22
|
import { useWorkspace, workspaceInfoQueryKey } from "./Workspace.js";
|
|
21
|
-
import {
|
|
23
|
+
import { i as WorkspaceThumbnailContext } from "../../workspace-quick-look-DODjsfhH.js";
|
|
22
24
|
import { WORKSPACE_TRASH, isHiddenWorkspaceEntry, isInWorkspaceTrash, isWithin, useWorkspaceFileCommands, workspaceFileCommandForKey, workspaceFileShortcut } from "./WorkspaceFileCommands.js";
|
|
23
25
|
import { WorkspaceFileDetails, WorkspaceFileFacts } from "./WorkspaceFileDetails.js";
|
|
24
26
|
import { WorkspaceFileView } from "./WorkspaceFileView.js";
|
|
@@ -66,37 +68,39 @@ function querySource(source, recent, search) {
|
|
|
66
68
|
}
|
|
67
69
|
/** What a desktop icon or Quick Look opens into: a folder's contents, or the file itself. */
|
|
68
70
|
function ComputerFilesPreview(t0) {
|
|
69
|
-
const $ = c(
|
|
70
|
-
const { entry, source, sourceKey, renderUnsupported: t1 } = t0;
|
|
71
|
+
const $ = c(29);
|
|
72
|
+
const { entry, source, sourceKey, resolveFileAsset, renderUnsupported: t1 } = t0;
|
|
71
73
|
const renderUnsupported = t1 === void 0 ? NO_UNSUPPORTED : t1;
|
|
72
74
|
const t2 = entry.type === "directory" ? entry.path : "/";
|
|
73
75
|
const t3 = entry.type === "file" ? entry.path : null;
|
|
74
76
|
let t4;
|
|
75
|
-
if ($[0] !==
|
|
77
|
+
if ($[0] !== resolveFileAsset || $[1] !== source || $[2] !== sourceKey || $[3] !== t2 || $[4] !== t3) {
|
|
76
78
|
t4 = {
|
|
77
79
|
source,
|
|
78
80
|
sourceKey,
|
|
81
|
+
resolveFileAsset,
|
|
79
82
|
root: t2,
|
|
80
83
|
selectedPath: t3
|
|
81
84
|
};
|
|
82
|
-
$[0] =
|
|
83
|
-
$[1] =
|
|
84
|
-
$[2] =
|
|
85
|
-
$[3] =
|
|
86
|
-
$[4] =
|
|
87
|
-
|
|
85
|
+
$[0] = resolveFileAsset;
|
|
86
|
+
$[1] = source;
|
|
87
|
+
$[2] = sourceKey;
|
|
88
|
+
$[3] = t2;
|
|
89
|
+
$[4] = t3;
|
|
90
|
+
$[5] = t4;
|
|
91
|
+
} else t4 = $[5];
|
|
88
92
|
const workspace = useWorkspace(t4);
|
|
89
93
|
if (entry.type === "directory") {
|
|
90
94
|
let t5;
|
|
91
|
-
if ($[
|
|
95
|
+
if ($[6] !== entry.path || $[7] !== workspace.entriesByDirectory) {
|
|
92
96
|
t5 = workspace.entriesByDirectory[entry.path] ?? [];
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
} else t5 = $[
|
|
97
|
+
$[6] = entry.path;
|
|
98
|
+
$[7] = workspace.entriesByDirectory;
|
|
99
|
+
$[8] = t5;
|
|
100
|
+
} else t5 = $[8];
|
|
97
101
|
const children = t5;
|
|
98
102
|
let t6;
|
|
99
|
-
if ($[
|
|
103
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
100
104
|
t6 = /* @__PURE__ */ jsx(AppIcon.Root, {
|
|
101
105
|
"aria-hidden": "true",
|
|
102
106
|
children: /* @__PURE__ */ jsx(AppIcon.Image, {
|
|
@@ -104,29 +108,29 @@ function ComputerFilesPreview(t0) {
|
|
|
104
108
|
alt: ""
|
|
105
109
|
})
|
|
106
110
|
});
|
|
107
|
-
$[
|
|
108
|
-
} else t6 = $[
|
|
111
|
+
$[9] = t6;
|
|
112
|
+
} else t6 = $[9];
|
|
109
113
|
const t7 = workspace.error ?? (workspace.isLoading ? "Loading folder…" : `${children.length} items`);
|
|
110
114
|
let t8;
|
|
111
|
-
if ($[
|
|
115
|
+
if ($[10] !== t7) {
|
|
112
116
|
t8 = /* @__PURE__ */ jsx("p", { children: t7 });
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
} else t8 = $[
|
|
117
|
+
$[10] = t7;
|
|
118
|
+
$[11] = t8;
|
|
119
|
+
} else t8 = $[11];
|
|
116
120
|
let t9;
|
|
117
|
-
if ($[
|
|
121
|
+
if ($[12] !== children) {
|
|
118
122
|
t9 = children.map(_temp$1);
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
} else t9 = $[
|
|
123
|
+
$[12] = children;
|
|
124
|
+
$[13] = t9;
|
|
125
|
+
} else t9 = $[13];
|
|
122
126
|
let t10;
|
|
123
|
-
if ($[
|
|
127
|
+
if ($[14] !== t9) {
|
|
124
128
|
t10 = /* @__PURE__ */ jsx("ul", { children: t9 });
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
} else t10 = $[
|
|
129
|
+
$[14] = t9;
|
|
130
|
+
$[15] = t10;
|
|
131
|
+
} else t10 = $[15];
|
|
128
132
|
let t11;
|
|
129
|
-
if ($[
|
|
133
|
+
if ($[16] !== t10 || $[17] !== t8) {
|
|
130
134
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
131
135
|
className: "computer-files-folder-preview",
|
|
132
136
|
children: [
|
|
@@ -135,23 +139,23 @@ function ComputerFilesPreview(t0) {
|
|
|
135
139
|
t10
|
|
136
140
|
]
|
|
137
141
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
} else t11 = $[
|
|
142
|
+
$[16] = t10;
|
|
143
|
+
$[17] = t8;
|
|
144
|
+
$[18] = t11;
|
|
145
|
+
} else t11 = $[18];
|
|
142
146
|
return t11;
|
|
143
147
|
}
|
|
144
148
|
const t5 = entry.path;
|
|
145
149
|
const t6 = workspace.selectedFile;
|
|
146
150
|
let t7;
|
|
147
|
-
if ($[
|
|
151
|
+
if ($[19] !== entry.path || $[20] !== workspace.loadingPaths) {
|
|
148
152
|
t7 = workspace.loadingPaths.has(entry.path);
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
} else t7 = $[
|
|
153
|
+
$[19] = entry.path;
|
|
154
|
+
$[20] = workspace.loadingPaths;
|
|
155
|
+
$[21] = t7;
|
|
156
|
+
} else t7 = $[21];
|
|
153
157
|
let t8;
|
|
154
|
-
if ($[
|
|
158
|
+
if ($[22] !== entry.path || $[23] !== renderUnsupported || $[24] !== t7 || $[25] !== workspace.isLoading || $[26] !== workspace.refresh || $[27] !== workspace.selectedFile) {
|
|
155
159
|
t8 = /* @__PURE__ */ jsx(WorkspaceFileView, {
|
|
156
160
|
header: "none",
|
|
157
161
|
appearance: "fill",
|
|
@@ -162,14 +166,14 @@ function ComputerFilesPreview(t0) {
|
|
|
162
166
|
renderUnsupported,
|
|
163
167
|
onRefresh: workspace.refresh
|
|
164
168
|
});
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
} else t8 = $[
|
|
169
|
+
$[22] = entry.path;
|
|
170
|
+
$[23] = renderUnsupported;
|
|
171
|
+
$[24] = t7;
|
|
172
|
+
$[25] = workspace.isLoading;
|
|
173
|
+
$[26] = workspace.refresh;
|
|
174
|
+
$[27] = workspace.selectedFile;
|
|
175
|
+
$[28] = t8;
|
|
176
|
+
} else t8 = $[28];
|
|
173
177
|
return t8;
|
|
174
178
|
}
|
|
175
179
|
function _temp$1(child) {
|
|
@@ -810,8 +814,8 @@ function FinderRailRow(t0) {
|
|
|
810
814
|
return t4;
|
|
811
815
|
}
|
|
812
816
|
function ComputerFinder(t0) {
|
|
813
|
-
const $ = c(
|
|
814
|
-
const { workspace, source, sourceKey, navigation, location, onLocation, filter, onFilterChange, view, onViewChange,
|
|
817
|
+
const $ = c(61);
|
|
818
|
+
const { workspace, source, sourceKey, resolveFileAsset, navigation, location, onLocation, filter, onFilterChange, view, onViewChange, renderUnsupported, phone, layout, onLayoutChange, sort, onSortChange, locations, projects, titles, toolbarActions, dialogs, status, dragAndDrop, commands, actionsRef, railDragAndDrop } = t0;
|
|
815
819
|
let T0;
|
|
816
820
|
let back;
|
|
817
821
|
let selectedPath;
|
|
@@ -819,42 +823,53 @@ function ComputerFinder(t0) {
|
|
|
819
823
|
let t2;
|
|
820
824
|
let t3;
|
|
821
825
|
let t4;
|
|
822
|
-
if ($[0] !== actionsRef || $[1] !== commands || $[2] !== dragAndDrop || $[3] !== filter || $[4] !== layout || $[5] !== location || $[6] !== locations || $[7] !== navigation || $[8] !== onFilterChange || $[9] !== onLayoutChange || $[10] !== onLocation || $[11] !== onSortChange || $[12] !== onViewChange || $[13] !== phone || $[14] !== projects || $[15] !== railDragAndDrop || $[16] !==
|
|
826
|
+
if ($[0] !== actionsRef || $[1] !== commands || $[2] !== dragAndDrop || $[3] !== filter || $[4] !== layout || $[5] !== location || $[6] !== locations || $[7] !== navigation || $[8] !== onFilterChange || $[9] !== onLayoutChange || $[10] !== onLocation || $[11] !== onSortChange || $[12] !== onViewChange || $[13] !== phone || $[14] !== projects || $[15] !== railDragAndDrop || $[16] !== renderUnsupported || $[17] !== resolveFileAsset || $[18] !== sort || $[19] !== source || $[20] !== sourceKey || $[21] !== status || $[22] !== titles || $[23] !== toolbarActions || $[24] !== view || $[25] !== workspace) {
|
|
823
827
|
selectedPath = openFilePath(navigation);
|
|
828
|
+
let t5;
|
|
829
|
+
if ($[33] !== source || $[34] !== sourceKey) {
|
|
830
|
+
t5 = {
|
|
831
|
+
source,
|
|
832
|
+
sourceKey
|
|
833
|
+
};
|
|
834
|
+
$[33] = source;
|
|
835
|
+
$[34] = sourceKey;
|
|
836
|
+
$[35] = t5;
|
|
837
|
+
} else t5 = $[35];
|
|
838
|
+
const thumbnails = t5;
|
|
824
839
|
const places = finderDetail(selectedPath ? workspaceDirname(selectedPath) : location, selectedPath);
|
|
825
840
|
const top = places.at(-1);
|
|
826
|
-
let
|
|
827
|
-
if ($[
|
|
828
|
-
|
|
829
|
-
$[
|
|
830
|
-
$[
|
|
831
|
-
} else
|
|
832
|
-
const rootLabel =
|
|
841
|
+
let t6;
|
|
842
|
+
if ($[36] !== titles) {
|
|
843
|
+
t6 = folderName("/", titles);
|
|
844
|
+
$[36] = titles;
|
|
845
|
+
$[37] = t6;
|
|
846
|
+
} else t6 = $[37];
|
|
847
|
+
const rootLabel = t6;
|
|
833
848
|
back = phoneBack({
|
|
834
849
|
...top,
|
|
835
850
|
workspace,
|
|
836
851
|
titles
|
|
837
852
|
}, onLocation);
|
|
838
|
-
const
|
|
839
|
-
let
|
|
840
|
-
if ($[
|
|
841
|
-
|
|
853
|
+
const t7 = phone ? void 0 : railDragAndDrop;
|
|
854
|
+
let t8;
|
|
855
|
+
if ($[38] !== location || $[39] !== locations || $[40] !== onLocation || $[41] !== phone || $[42] !== projects || $[43] !== t7) {
|
|
856
|
+
t8 = /* @__PURE__ */ jsx(FinderRail, {
|
|
842
857
|
phone,
|
|
843
858
|
location,
|
|
844
859
|
onLocation,
|
|
845
860
|
places: locations,
|
|
846
861
|
projects,
|
|
847
|
-
railDragAndDrop:
|
|
862
|
+
railDragAndDrop: t7
|
|
848
863
|
});
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
$[
|
|
856
|
-
} else
|
|
857
|
-
const rail =
|
|
864
|
+
$[38] = location;
|
|
865
|
+
$[39] = locations;
|
|
866
|
+
$[40] = onLocation;
|
|
867
|
+
$[41] = phone;
|
|
868
|
+
$[42] = projects;
|
|
869
|
+
$[43] = t7;
|
|
870
|
+
$[44] = t8;
|
|
871
|
+
} else t8 = $[44];
|
|
872
|
+
const rail = t8;
|
|
858
873
|
const content = function content(screen) {
|
|
859
874
|
const currentScreen = screen.key === top.key;
|
|
860
875
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -869,36 +884,39 @@ function ComputerFinder(t0) {
|
|
|
869
884
|
onLocation
|
|
870
885
|
}),
|
|
871
886
|
currentScreen ? status : null,
|
|
872
|
-
/* @__PURE__ */ jsx(
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
...navigation
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
entry,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
887
|
+
/* @__PURE__ */ jsx(WorkspaceThumbnailContext, {
|
|
888
|
+
value: thumbnails,
|
|
889
|
+
children: /* @__PURE__ */ jsx(WorkspaceExplorer, {
|
|
890
|
+
workspace: screen.workspace,
|
|
891
|
+
navigation: screen.file !== selectedPath ? {
|
|
892
|
+
...navigation,
|
|
893
|
+
current: {
|
|
894
|
+
...navigation.current,
|
|
895
|
+
destination: { kind: "files" }
|
|
896
|
+
}
|
|
897
|
+
} : navigation,
|
|
898
|
+
header: "none",
|
|
899
|
+
layout,
|
|
900
|
+
sort,
|
|
901
|
+
showFilter: phone && !screen.file,
|
|
902
|
+
filterPlaceholder: "Search files",
|
|
903
|
+
filter,
|
|
904
|
+
onFilterChange,
|
|
905
|
+
view,
|
|
906
|
+
onViewChange,
|
|
907
|
+
onDirectoryOpen: onLocation,
|
|
908
|
+
renderUnsupported,
|
|
909
|
+
renderPreview: (entry) => /* @__PURE__ */ jsx(ComputerFilesPreview, {
|
|
910
|
+
entry,
|
|
911
|
+
source,
|
|
912
|
+
sourceKey,
|
|
913
|
+
resolveFileAsset,
|
|
914
|
+
renderUnsupported
|
|
915
|
+
}),
|
|
916
|
+
actionsRef: currentScreen ? actionsRef : void 0,
|
|
917
|
+
dragAndDrop: phone || !currentScreen ? void 0 : dragAndDrop,
|
|
918
|
+
commands: phone || !currentScreen ? void 0 : commands
|
|
919
|
+
})
|
|
902
920
|
})
|
|
903
921
|
]
|
|
904
922
|
});
|
|
@@ -930,7 +948,7 @@ function ComputerFinder(t0) {
|
|
|
930
948
|
};
|
|
931
949
|
T0 = ListDetail;
|
|
932
950
|
t1 = "computer-finder";
|
|
933
|
-
if ($[
|
|
951
|
+
if ($[45] !== phone || $[46] !== rail || $[47] !== rootLabel || $[48] !== toolbarActions) {
|
|
934
952
|
t2 = phone ? /* @__PURE__ */ jsxs("div", {
|
|
935
953
|
className: "computer-finder-browse",
|
|
936
954
|
children: [
|
|
@@ -955,12 +973,12 @@ function ComputerFinder(t0) {
|
|
|
955
973
|
rail
|
|
956
974
|
]
|
|
957
975
|
}) : rail;
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
962
|
-
$[
|
|
963
|
-
} else t2 = $[
|
|
976
|
+
$[45] = phone;
|
|
977
|
+
$[46] = rail;
|
|
978
|
+
$[47] = rootLabel;
|
|
979
|
+
$[48] = toolbarActions;
|
|
980
|
+
$[49] = t2;
|
|
981
|
+
} else t2 = $[49];
|
|
964
982
|
t3 = "Locations";
|
|
965
983
|
t4 = places.map((place) => ({
|
|
966
984
|
key: place.key,
|
|
@@ -995,8 +1013,8 @@ function ComputerFinder(t0) {
|
|
|
995
1013
|
$[13] = phone;
|
|
996
1014
|
$[14] = projects;
|
|
997
1015
|
$[15] = railDragAndDrop;
|
|
998
|
-
$[16] =
|
|
999
|
-
$[17] =
|
|
1016
|
+
$[16] = renderUnsupported;
|
|
1017
|
+
$[17] = resolveFileAsset;
|
|
1000
1018
|
$[18] = sort;
|
|
1001
1019
|
$[19] = source;
|
|
1002
1020
|
$[20] = sourceKey;
|
|
@@ -1024,7 +1042,7 @@ function ComputerFinder(t0) {
|
|
|
1024
1042
|
const t5 = !(location === "/" && !selectedPath);
|
|
1025
1043
|
const t6 = back?.go;
|
|
1026
1044
|
let t7;
|
|
1027
|
-
if ($[
|
|
1045
|
+
if ($[50] !== T0 || $[51] !== t1 || $[52] !== t2 || $[53] !== t3 || $[54] !== t4 || $[55] !== t5 || $[56] !== t6) {
|
|
1028
1046
|
t7 = /* @__PURE__ */ jsx(T0, {
|
|
1029
1047
|
className: t1,
|
|
1030
1048
|
list: t2,
|
|
@@ -1034,22 +1052,22 @@ function ComputerFinder(t0) {
|
|
|
1034
1052
|
open: t5,
|
|
1035
1053
|
onBack: t6
|
|
1036
1054
|
});
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
$[
|
|
1043
|
-
$[
|
|
1044
|
-
$[
|
|
1045
|
-
} else t7 = $[
|
|
1055
|
+
$[50] = T0;
|
|
1056
|
+
$[51] = t1;
|
|
1057
|
+
$[52] = t2;
|
|
1058
|
+
$[53] = t3;
|
|
1059
|
+
$[54] = t4;
|
|
1060
|
+
$[55] = t5;
|
|
1061
|
+
$[56] = t6;
|
|
1062
|
+
$[57] = t7;
|
|
1063
|
+
} else t7 = $[57];
|
|
1046
1064
|
let t8;
|
|
1047
|
-
if ($[
|
|
1065
|
+
if ($[58] !== dialogs || $[59] !== t7) {
|
|
1048
1066
|
t8 = /* @__PURE__ */ jsxs(Fragment, { children: [t7, dialogs] });
|
|
1049
|
-
$[
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
} else t8 = $[
|
|
1067
|
+
$[58] = dialogs;
|
|
1068
|
+
$[59] = t7;
|
|
1069
|
+
$[60] = t8;
|
|
1070
|
+
} else t8 = $[60];
|
|
1053
1071
|
return t8;
|
|
1054
1072
|
}
|
|
1055
1073
|
/**
|
|
@@ -1296,9 +1314,9 @@ function folderLineage(path) {
|
|
|
1296
1314
|
* are separate subtrees of the same window.
|
|
1297
1315
|
*/
|
|
1298
1316
|
function useFinderModel(host) {
|
|
1299
|
-
const $ = c(
|
|
1317
|
+
const $ = c(130);
|
|
1300
1318
|
const { files, navigation, location, onLocation, onBack, onForward, projects, onOpenConversation, onStartConversation, views } = host;
|
|
1301
|
-
const { source, sourceKey } = files.home;
|
|
1319
|
+
const { source, sourceKey, resolveFileAsset } = files.home;
|
|
1302
1320
|
const queryClient = useQueryClient();
|
|
1303
1321
|
const places = finderPlaces(files.locations);
|
|
1304
1322
|
let t0;
|
|
@@ -1336,33 +1354,35 @@ function useFinderModel(host) {
|
|
|
1336
1354
|
const finderSource = t2;
|
|
1337
1355
|
const t3 = file ? "/" : searching ? `${SEARCH}${encodeURIComponent(query)}` : location;
|
|
1338
1356
|
let t4;
|
|
1339
|
-
if ($[8] !== file || $[9] !== finderSource || $[10] !==
|
|
1357
|
+
if ($[8] !== file || $[9] !== finderSource || $[10] !== resolveFileAsset || $[11] !== sourceKey || $[12] !== t3) {
|
|
1340
1358
|
t4 = {
|
|
1341
1359
|
source: finderSource,
|
|
1342
1360
|
sourceKey,
|
|
1361
|
+
resolveFileAsset,
|
|
1343
1362
|
root: t3,
|
|
1344
1363
|
selectedPath: file
|
|
1345
1364
|
};
|
|
1346
1365
|
$[8] = file;
|
|
1347
1366
|
$[9] = finderSource;
|
|
1348
|
-
$[10] =
|
|
1349
|
-
$[11] =
|
|
1350
|
-
$[12] =
|
|
1351
|
-
|
|
1367
|
+
$[10] = resolveFileAsset;
|
|
1368
|
+
$[11] = sourceKey;
|
|
1369
|
+
$[12] = t3;
|
|
1370
|
+
$[13] = t4;
|
|
1371
|
+
} else t4 = $[13];
|
|
1352
1372
|
const workspace = useWorkspace(t4);
|
|
1353
1373
|
let t5;
|
|
1354
|
-
if ($[
|
|
1374
|
+
if ($[14] !== location || $[15] !== projects) {
|
|
1355
1375
|
let t6;
|
|
1356
|
-
if ($[
|
|
1376
|
+
if ($[17] !== location) {
|
|
1357
1377
|
t6 = (candidate) => workspaceDirname(candidate.path) === location;
|
|
1358
|
-
$[
|
|
1359
|
-
$[
|
|
1360
|
-
} else t6 = $[
|
|
1378
|
+
$[17] = location;
|
|
1379
|
+
$[18] = t6;
|
|
1380
|
+
} else t6 = $[18];
|
|
1361
1381
|
t5 = projects.find(t6);
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
} else t5 = $[
|
|
1382
|
+
$[14] = location;
|
|
1383
|
+
$[15] = projects;
|
|
1384
|
+
$[16] = t5;
|
|
1385
|
+
} else t5 = $[16];
|
|
1366
1386
|
const project = t5;
|
|
1367
1387
|
const titles = new Map([
|
|
1368
1388
|
["/", files.home.name],
|
|
@@ -1373,40 +1393,40 @@ function useFinderModel(host) {
|
|
|
1373
1393
|
const lockedHere = readOnlyAt(location);
|
|
1374
1394
|
const [view, setView] = useState("preview");
|
|
1375
1395
|
let t6;
|
|
1376
|
-
if ($[
|
|
1396
|
+
if ($[19] !== location || $[20] !== recents || $[21] !== views) {
|
|
1377
1397
|
t6 = () => (recents ? [location] : folderLineage(location)).map((folder) => views.get(folder)).find(Boolean) ?? (recents ? RECENTS_VIEW : FOLDER_VIEW);
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
} else t6 = $[
|
|
1398
|
+
$[19] = location;
|
|
1399
|
+
$[20] = recents;
|
|
1400
|
+
$[21] = views;
|
|
1401
|
+
$[22] = t6;
|
|
1402
|
+
} else t6 = $[22];
|
|
1383
1403
|
const folderView = useSyncExternalStore(views.subscribe, t6);
|
|
1384
1404
|
const { layout, sort } = folderView;
|
|
1385
1405
|
let t7;
|
|
1386
|
-
if ($[
|
|
1406
|
+
if ($[23] !== folderView || $[24] !== location || $[25] !== views) {
|
|
1387
1407
|
t7 = (patch) => views.set(location, {
|
|
1388
1408
|
...folderView,
|
|
1389
1409
|
...patch
|
|
1390
1410
|
});
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
} else t7 = $[
|
|
1411
|
+
$[23] = folderView;
|
|
1412
|
+
$[24] = location;
|
|
1413
|
+
$[25] = views;
|
|
1414
|
+
$[26] = t7;
|
|
1415
|
+
} else t7 = $[26];
|
|
1396
1416
|
const setFolderView = t7;
|
|
1397
1417
|
let t8;
|
|
1398
|
-
if ($[
|
|
1418
|
+
if ($[27] !== setFolderView) {
|
|
1399
1419
|
t8 = (next) => setFolderView({ layout: next });
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1402
|
-
} else t8 = $[
|
|
1420
|
+
$[27] = setFolderView;
|
|
1421
|
+
$[28] = t8;
|
|
1422
|
+
} else t8 = $[28];
|
|
1403
1423
|
const setLayout = t8;
|
|
1404
1424
|
let t9;
|
|
1405
|
-
if ($[
|
|
1425
|
+
if ($[29] !== setFolderView) {
|
|
1406
1426
|
t9 = (next_0) => setFolderView({ sort: next_0 });
|
|
1407
|
-
$[
|
|
1408
|
-
$[
|
|
1409
|
-
} else t9 = $[
|
|
1427
|
+
$[29] = setFolderView;
|
|
1428
|
+
$[30] = t9;
|
|
1429
|
+
} else t9 = $[30];
|
|
1410
1430
|
const setSort = t9;
|
|
1411
1431
|
const [newProjectOpen, setNewProjectOpen] = useState(false);
|
|
1412
1432
|
const inTrash = location === WORKSPACE_TRASH;
|
|
@@ -1421,7 +1441,7 @@ function useFinderModel(host) {
|
|
|
1421
1441
|
const importFolder = virtual ? "/" : location;
|
|
1422
1442
|
const importLocked = readOnlyAt(importFolder);
|
|
1423
1443
|
let t10;
|
|
1424
|
-
if ($[
|
|
1444
|
+
if ($[31] !== files || $[32] !== onLocation || $[33] !== queryClient || $[34] !== source || $[35] !== sourceKey) {
|
|
1425
1445
|
t10 = async function createProject(name, description) {
|
|
1426
1446
|
const slug = projectSlug(name);
|
|
1427
1447
|
if (!slug) throw new Error("Use at least one letter or number in the name.");
|
|
@@ -1431,16 +1451,16 @@ function useFinderModel(host) {
|
|
|
1431
1451
|
onLocation(folderPath);
|
|
1432
1452
|
files.setStatus(`Created ${name} in Agent files.`);
|
|
1433
1453
|
};
|
|
1434
|
-
$[
|
|
1435
|
-
$[
|
|
1436
|
-
$[
|
|
1437
|
-
$[
|
|
1438
|
-
$[
|
|
1439
|
-
$[
|
|
1440
|
-
} else t10 = $[
|
|
1454
|
+
$[31] = files;
|
|
1455
|
+
$[32] = onLocation;
|
|
1456
|
+
$[33] = queryClient;
|
|
1457
|
+
$[34] = source;
|
|
1458
|
+
$[35] = sourceKey;
|
|
1459
|
+
$[36] = t10;
|
|
1460
|
+
} else t10 = $[36];
|
|
1441
1461
|
const createProject = t10;
|
|
1442
1462
|
let t11;
|
|
1443
|
-
if ($[
|
|
1463
|
+
if ($[37] !== file || $[38] !== files || $[39] !== setExportFeedback || $[40] !== setExporting || $[41] !== source) {
|
|
1444
1464
|
t11 = async function exportFile(mode) {
|
|
1445
1465
|
if (!file || exportBusyRef.current) return;
|
|
1446
1466
|
exportBusyRef.current = true;
|
|
@@ -1456,16 +1476,16 @@ function useFinderModel(host) {
|
|
|
1456
1476
|
exportBusyRef.current = false;
|
|
1457
1477
|
setExporting(false);
|
|
1458
1478
|
};
|
|
1459
|
-
$[
|
|
1460
|
-
$[
|
|
1461
|
-
$[
|
|
1462
|
-
$[
|
|
1463
|
-
$[
|
|
1464
|
-
$[
|
|
1465
|
-
} else t11 = $[
|
|
1479
|
+
$[37] = file;
|
|
1480
|
+
$[38] = files;
|
|
1481
|
+
$[39] = setExportFeedback;
|
|
1482
|
+
$[40] = setExporting;
|
|
1483
|
+
$[41] = source;
|
|
1484
|
+
$[42] = t11;
|
|
1485
|
+
} else t11 = $[42];
|
|
1466
1486
|
const exportFile = t11;
|
|
1467
1487
|
let t12;
|
|
1468
|
-
if ($[
|
|
1488
|
+
if ($[43] !== files || $[44] !== readOnlyAt || $[45] !== source || $[46] !== sourceKey) {
|
|
1469
1489
|
t12 = function dragAndDropAt(folder_0) {
|
|
1470
1490
|
return readOnlyAt(folder_0) ? {
|
|
1471
1491
|
source,
|
|
@@ -1476,24 +1496,24 @@ function useFinderModel(host) {
|
|
|
1476
1496
|
onDrop: (drop, into, operation) => void files.drop(files.home, drop, into, operation)
|
|
1477
1497
|
};
|
|
1478
1498
|
};
|
|
1479
|
-
$[
|
|
1480
|
-
$[
|
|
1481
|
-
$[
|
|
1482
|
-
$[
|
|
1483
|
-
$[
|
|
1484
|
-
} else t12 = $[
|
|
1499
|
+
$[43] = files;
|
|
1500
|
+
$[44] = readOnlyAt;
|
|
1501
|
+
$[45] = source;
|
|
1502
|
+
$[46] = sourceKey;
|
|
1503
|
+
$[47] = t12;
|
|
1504
|
+
} else t12 = $[47];
|
|
1485
1505
|
const dragAndDropAt = t12;
|
|
1486
1506
|
let t13;
|
|
1487
|
-
if ($[
|
|
1507
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1488
1508
|
t13 = function perform(command) {
|
|
1489
1509
|
focusAfterMenu.current = command === "rename" || command === "new-folder";
|
|
1490
1510
|
actionsRef.current?.run(command);
|
|
1491
1511
|
};
|
|
1492
|
-
$[
|
|
1493
|
-
} else t13 = $[
|
|
1512
|
+
$[48] = t13;
|
|
1513
|
+
} else t13 = $[48];
|
|
1494
1514
|
const perform = t13;
|
|
1495
1515
|
let t14;
|
|
1496
|
-
if ($[
|
|
1516
|
+
if ($[49] !== listing || $[50] !== virtual) {
|
|
1497
1517
|
t14 = function fileItem(command_0, label, t15) {
|
|
1498
1518
|
const disabled = t15 === void 0 ? false : t15;
|
|
1499
1519
|
const shortcut = workspaceFileShortcut(command_0);
|
|
@@ -1504,23 +1524,23 @@ function useFinderModel(host) {
|
|
|
1504
1524
|
children: [label, shortcut ? /* @__PURE__ */ jsx(Menubar.Shortcut, { children: shortcut.glyph }) : null]
|
|
1505
1525
|
});
|
|
1506
1526
|
};
|
|
1507
|
-
$[
|
|
1508
|
-
$[
|
|
1509
|
-
$[
|
|
1510
|
-
} else t14 = $[
|
|
1527
|
+
$[49] = listing;
|
|
1528
|
+
$[50] = virtual;
|
|
1529
|
+
$[51] = t14;
|
|
1530
|
+
} else t14 = $[51];
|
|
1511
1531
|
const fileItem = t14;
|
|
1512
1532
|
let t15;
|
|
1513
|
-
if ($[
|
|
1533
|
+
if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1514
1534
|
t15 = function keepFieldFocus() {
|
|
1515
1535
|
if (!focusAfterMenu.current) return true;
|
|
1516
1536
|
focusAfterMenu.current = false;
|
|
1517
1537
|
return false;
|
|
1518
1538
|
};
|
|
1519
|
-
$[
|
|
1520
|
-
} else t15 = $[
|
|
1539
|
+
$[52] = t15;
|
|
1540
|
+
} else t15 = $[52];
|
|
1521
1541
|
const keepFieldFocus = t15;
|
|
1522
1542
|
let t16;
|
|
1523
|
-
if ($[
|
|
1543
|
+
if ($[53] !== files || $[54] !== importFolder) {
|
|
1524
1544
|
t16 = async function importFiles(chosen) {
|
|
1525
1545
|
if (chosen.length === 0) return;
|
|
1526
1546
|
await files.drop(files.home, {
|
|
@@ -1529,33 +1549,33 @@ function useFinderModel(host) {
|
|
|
1529
1549
|
}, importFolder, "copy");
|
|
1530
1550
|
if (inputRef.current) inputRef.current.value = "";
|
|
1531
1551
|
};
|
|
1532
|
-
$[
|
|
1533
|
-
$[
|
|
1534
|
-
$[
|
|
1535
|
-
} else t16 = $[
|
|
1552
|
+
$[53] = files;
|
|
1553
|
+
$[54] = importFolder;
|
|
1554
|
+
$[55] = t16;
|
|
1555
|
+
} else t16 = $[55];
|
|
1536
1556
|
const importFiles = t16;
|
|
1537
1557
|
let t17;
|
|
1538
|
-
if ($[
|
|
1558
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1539
1559
|
t17 = function find() {
|
|
1540
1560
|
searchRef.current?.focus();
|
|
1541
1561
|
searchRef.current?.select();
|
|
1542
1562
|
};
|
|
1543
|
-
$[
|
|
1544
|
-
} else t17 = $[
|
|
1563
|
+
$[56] = t17;
|
|
1564
|
+
} else t17 = $[56];
|
|
1545
1565
|
const find = t17;
|
|
1546
1566
|
let t18;
|
|
1547
|
-
if ($[
|
|
1567
|
+
if ($[57] !== onLocation || $[58] !== setFilter) {
|
|
1548
1568
|
t18 = function goTo(path_1) {
|
|
1549
1569
|
setFilter("");
|
|
1550
1570
|
onLocation(path_1);
|
|
1551
1571
|
};
|
|
1552
|
-
$[
|
|
1553
|
-
$[
|
|
1554
|
-
$[
|
|
1555
|
-
} else t18 = $[
|
|
1572
|
+
$[57] = onLocation;
|
|
1573
|
+
$[58] = setFilter;
|
|
1574
|
+
$[59] = t18;
|
|
1575
|
+
} else t18 = $[59];
|
|
1556
1576
|
const goTo = t18;
|
|
1557
1577
|
let t19;
|
|
1558
|
-
if ($[
|
|
1578
|
+
if ($[60] !== importFiles) {
|
|
1559
1579
|
t19 = /* @__PURE__ */ jsx("input", {
|
|
1560
1580
|
ref: inputRef,
|
|
1561
1581
|
className: "sigvelo-visually-hidden",
|
|
@@ -1565,32 +1585,32 @@ function useFinderModel(host) {
|
|
|
1565
1585
|
"aria-hidden": "true",
|
|
1566
1586
|
onChange: (event) => void importFiles([...event.currentTarget.files ?? []])
|
|
1567
1587
|
});
|
|
1568
|
-
$[
|
|
1569
|
-
$[
|
|
1570
|
-
} else t19 = $[
|
|
1588
|
+
$[60] = importFiles;
|
|
1589
|
+
$[61] = t19;
|
|
1590
|
+
} else t19 = $[61];
|
|
1571
1591
|
let t20;
|
|
1572
|
-
if ($[
|
|
1592
|
+
if ($[62] !== createProject || $[63] !== newProjectOpen || $[64] !== setNewProjectOpen) {
|
|
1573
1593
|
t20 = /* @__PURE__ */ jsx(NewProjectDialog, {
|
|
1574
1594
|
open: newProjectOpen,
|
|
1575
1595
|
onOpenChange: setNewProjectOpen,
|
|
1576
1596
|
onCreate: createProject
|
|
1577
1597
|
});
|
|
1578
|
-
$[
|
|
1579
|
-
$[
|
|
1580
|
-
$[
|
|
1581
|
-
$[
|
|
1582
|
-
} else t20 = $[
|
|
1598
|
+
$[62] = createProject;
|
|
1599
|
+
$[63] = newProjectOpen;
|
|
1600
|
+
$[64] = setNewProjectOpen;
|
|
1601
|
+
$[65] = t20;
|
|
1602
|
+
} else t20 = $[65];
|
|
1583
1603
|
let t21;
|
|
1584
|
-
if ($[
|
|
1604
|
+
if ($[66] !== t19 || $[67] !== t20) {
|
|
1585
1605
|
t21 = /* @__PURE__ */ jsxs(Fragment, { children: [t19, t20] });
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
$[
|
|
1589
|
-
} else t21 = $[
|
|
1606
|
+
$[66] = t19;
|
|
1607
|
+
$[67] = t20;
|
|
1608
|
+
$[68] = t21;
|
|
1609
|
+
} else t21 = $[68];
|
|
1590
1610
|
const dialogs = t21;
|
|
1591
1611
|
const conversationId = project && listing ? project.conversationId : null;
|
|
1592
1612
|
let t22;
|
|
1593
|
-
if ($[
|
|
1613
|
+
if ($[69] !== conversationId || $[70] !== onOpenConversation) {
|
|
1594
1614
|
t22 = conversationId ? /* @__PURE__ */ jsx(IconButton, {
|
|
1595
1615
|
label: "Resume conversation",
|
|
1596
1616
|
variant: "ghost",
|
|
@@ -1598,12 +1618,12 @@ function useFinderModel(host) {
|
|
|
1598
1618
|
onClick: () => onOpenConversation(conversationId),
|
|
1599
1619
|
children: /* @__PURE__ */ jsx(MessageSquareIcon, {})
|
|
1600
1620
|
}) : null;
|
|
1601
|
-
$[
|
|
1602
|
-
$[
|
|
1603
|
-
$[
|
|
1604
|
-
} else t22 = $[
|
|
1621
|
+
$[69] = conversationId;
|
|
1622
|
+
$[70] = onOpenConversation;
|
|
1623
|
+
$[71] = t22;
|
|
1624
|
+
} else t22 = $[71];
|
|
1605
1625
|
let t23;
|
|
1606
|
-
if ($[
|
|
1626
|
+
if ($[72] !== listing || $[73] !== onStartConversation || $[74] !== project) {
|
|
1607
1627
|
t23 = project && listing ? /* @__PURE__ */ jsx(IconButton, {
|
|
1608
1628
|
label: "Start conversation",
|
|
1609
1629
|
variant: "ghost",
|
|
@@ -1611,13 +1631,13 @@ function useFinderModel(host) {
|
|
|
1611
1631
|
onClick: () => onStartConversation(project.path, project.name),
|
|
1612
1632
|
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
1613
1633
|
}) : null;
|
|
1614
|
-
$[
|
|
1615
|
-
$[
|
|
1616
|
-
$[
|
|
1617
|
-
$[
|
|
1618
|
-
} else t23 = $[
|
|
1634
|
+
$[72] = listing;
|
|
1635
|
+
$[73] = onStartConversation;
|
|
1636
|
+
$[74] = project;
|
|
1637
|
+
$[75] = t23;
|
|
1638
|
+
} else t23 = $[75];
|
|
1619
1639
|
let t24;
|
|
1620
|
-
if ($[
|
|
1640
|
+
if ($[76] !== exportFile || $[77] !== exporting || $[78] !== files.emptyTrash || $[79] !== files.transferring || $[80] !== files.trashFull || $[81] !== importLocked || $[82] !== inTrash || $[83] !== listing || $[84] !== setNewProjectOpen) {
|
|
1621
1641
|
t24 = inTrash ? /* @__PURE__ */ jsx(Button, {
|
|
1622
1642
|
variant: "ghost",
|
|
1623
1643
|
color: "neutral",
|
|
@@ -1659,19 +1679,19 @@ function useFinderModel(host) {
|
|
|
1659
1679
|
children: "Save As…"
|
|
1660
1680
|
})] })
|
|
1661
1681
|
}) })] });
|
|
1662
|
-
$[
|
|
1663
|
-
$[
|
|
1664
|
-
$[
|
|
1665
|
-
$[
|
|
1666
|
-
$[
|
|
1667
|
-
$[
|
|
1668
|
-
$[
|
|
1669
|
-
$[
|
|
1670
|
-
$[
|
|
1671
|
-
$[
|
|
1672
|
-
} else t24 = $[
|
|
1682
|
+
$[76] = exportFile;
|
|
1683
|
+
$[77] = exporting;
|
|
1684
|
+
$[78] = files.emptyTrash;
|
|
1685
|
+
$[79] = files.transferring;
|
|
1686
|
+
$[80] = files.trashFull;
|
|
1687
|
+
$[81] = importLocked;
|
|
1688
|
+
$[82] = inTrash;
|
|
1689
|
+
$[83] = listing;
|
|
1690
|
+
$[84] = setNewProjectOpen;
|
|
1691
|
+
$[85] = t24;
|
|
1692
|
+
} else t24 = $[85];
|
|
1673
1693
|
let t25;
|
|
1674
|
-
if ($[
|
|
1694
|
+
if ($[86] !== t22 || $[87] !== t23 || $[88] !== t24) {
|
|
1675
1695
|
t25 = /* @__PURE__ */ jsxs("div", {
|
|
1676
1696
|
className: "computer-finder-toolbar__actions",
|
|
1677
1697
|
children: [
|
|
@@ -1680,14 +1700,14 @@ function useFinderModel(host) {
|
|
|
1680
1700
|
t24
|
|
1681
1701
|
]
|
|
1682
1702
|
});
|
|
1683
|
-
$[
|
|
1684
|
-
$[
|
|
1685
|
-
$[
|
|
1686
|
-
$[
|
|
1687
|
-
} else t25 = $[
|
|
1703
|
+
$[86] = t22;
|
|
1704
|
+
$[87] = t23;
|
|
1705
|
+
$[88] = t24;
|
|
1706
|
+
$[89] = t25;
|
|
1707
|
+
} else t25 = $[89];
|
|
1688
1708
|
const toolbarActions = t25;
|
|
1689
1709
|
let t26;
|
|
1690
|
-
if ($[
|
|
1710
|
+
if ($[90] !== files || $[91] !== filter || $[92] !== listing || $[93] !== setFilter) {
|
|
1691
1711
|
t26 = (event_0) => {
|
|
1692
1712
|
const command_1 = event_0.defaultPrevented ? null : workspaceFileCommandForKey(event_0.nativeEvent);
|
|
1693
1713
|
if (command_1 === "undo" || command_1 === "redo") {
|
|
@@ -1702,26 +1722,26 @@ function useFinderModel(host) {
|
|
|
1702
1722
|
setFilter("");
|
|
1703
1723
|
}
|
|
1704
1724
|
};
|
|
1705
|
-
$[
|
|
1706
|
-
$[
|
|
1707
|
-
$[
|
|
1708
|
-
$[
|
|
1709
|
-
$[
|
|
1710
|
-
} else t26 = $[
|
|
1725
|
+
$[90] = files;
|
|
1726
|
+
$[91] = filter;
|
|
1727
|
+
$[92] = listing;
|
|
1728
|
+
$[93] = setFilter;
|
|
1729
|
+
$[94] = t26;
|
|
1730
|
+
} else t26 = $[94];
|
|
1711
1731
|
let t27;
|
|
1712
|
-
if ($[
|
|
1732
|
+
if ($[95] !== files.emptyTrash || $[96] !== files.trashFull) {
|
|
1713
1733
|
t27 = () => /* @__PURE__ */ jsxs(Menubar.Item, {
|
|
1714
1734
|
disabled: !files.trashFull,
|
|
1715
1735
|
"aria-keyshortcuts": workspaceFileShortcut("empty-trash")?.aria,
|
|
1716
1736
|
onClick: files.emptyTrash,
|
|
1717
1737
|
children: ["Empty Trash…", /* @__PURE__ */ jsx(Menubar.Shortcut, { children: workspaceFileShortcut("empty-trash")?.glyph })]
|
|
1718
1738
|
});
|
|
1719
|
-
$[
|
|
1720
|
-
$[
|
|
1721
|
-
$[
|
|
1722
|
-
} else t27 = $[
|
|
1739
|
+
$[95] = files.emptyTrash;
|
|
1740
|
+
$[96] = files.trashFull;
|
|
1741
|
+
$[97] = t27;
|
|
1742
|
+
} else t27 = $[97];
|
|
1723
1743
|
let t28;
|
|
1724
|
-
if ($[
|
|
1744
|
+
if ($[98] !== exportFile || $[99] !== exporting || $[100] !== file || $[101] !== fileItem || $[102] !== files.redo || $[103] !== files.redoLabel || $[104] !== files.transferring || $[105] !== files.undo || $[106] !== files.undoLabel || $[107] !== goTo || $[108] !== importLocked || $[109] !== inTrash || $[110] !== layout || $[111] !== listing || $[112] !== lockedHere || $[113] !== onBack || $[114] !== onForward || $[115] !== places || $[116] !== setLayout || $[117] !== setNewProjectOpen || $[118] !== setSort || $[119] !== setView || $[120] !== sort || $[121] !== view || $[122] !== workspace) {
|
|
1725
1745
|
t28 = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1726
1746
|
/* @__PURE__ */ jsxs(Menubar.Menu, { children: [/* @__PURE__ */ jsx(Menubar.Trigger, { children: "File" }), /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
|
|
1727
1747
|
align: "start",
|
|
@@ -1892,33 +1912,33 @@ function useFinderModel(host) {
|
|
|
1892
1912
|
] })
|
|
1893
1913
|
}) })] })
|
|
1894
1914
|
] });
|
|
1895
|
-
$[
|
|
1896
|
-
$[
|
|
1897
|
-
$[
|
|
1898
|
-
$[
|
|
1899
|
-
$[
|
|
1900
|
-
$[
|
|
1901
|
-
$[
|
|
1902
|
-
$[
|
|
1903
|
-
$[
|
|
1904
|
-
$[
|
|
1905
|
-
$[
|
|
1906
|
-
$[
|
|
1907
|
-
$[
|
|
1908
|
-
$[
|
|
1909
|
-
$[
|
|
1910
|
-
$[
|
|
1911
|
-
$[
|
|
1912
|
-
$[
|
|
1913
|
-
$[
|
|
1914
|
-
$[
|
|
1915
|
-
$[
|
|
1916
|
-
$[
|
|
1917
|
-
$[
|
|
1918
|
-
$[
|
|
1919
|
-
$[
|
|
1920
|
-
$[
|
|
1921
|
-
} else t28 = $[
|
|
1915
|
+
$[98] = exportFile;
|
|
1916
|
+
$[99] = exporting;
|
|
1917
|
+
$[100] = file;
|
|
1918
|
+
$[101] = fileItem;
|
|
1919
|
+
$[102] = files.redo;
|
|
1920
|
+
$[103] = files.redoLabel;
|
|
1921
|
+
$[104] = files.transferring;
|
|
1922
|
+
$[105] = files.undo;
|
|
1923
|
+
$[106] = files.undoLabel;
|
|
1924
|
+
$[107] = goTo;
|
|
1925
|
+
$[108] = importLocked;
|
|
1926
|
+
$[109] = inTrash;
|
|
1927
|
+
$[110] = layout;
|
|
1928
|
+
$[111] = listing;
|
|
1929
|
+
$[112] = lockedHere;
|
|
1930
|
+
$[113] = onBack;
|
|
1931
|
+
$[114] = onForward;
|
|
1932
|
+
$[115] = places;
|
|
1933
|
+
$[116] = setLayout;
|
|
1934
|
+
$[117] = setNewProjectOpen;
|
|
1935
|
+
$[118] = setSort;
|
|
1936
|
+
$[119] = setView;
|
|
1937
|
+
$[120] = sort;
|
|
1938
|
+
$[121] = view;
|
|
1939
|
+
$[122] = workspace;
|
|
1940
|
+
$[123] = t28;
|
|
1941
|
+
} else t28 = $[123];
|
|
1922
1942
|
const t29 = (t30) => {
|
|
1923
1943
|
const { phone } = t30;
|
|
1924
1944
|
return phone ? null : /* @__PURE__ */ jsx(ComputerFinderToolbar, {
|
|
@@ -1952,6 +1972,7 @@ function useFinderModel(host) {
|
|
|
1952
1972
|
workspace,
|
|
1953
1973
|
source: finderSource,
|
|
1954
1974
|
sourceKey,
|
|
1975
|
+
resolveFileAsset,
|
|
1955
1976
|
navigation,
|
|
1956
1977
|
location,
|
|
1957
1978
|
onLocation: goTo,
|
|
@@ -1959,7 +1980,6 @@ function useFinderModel(host) {
|
|
|
1959
1980
|
onFilterChange: setFilter,
|
|
1960
1981
|
view,
|
|
1961
1982
|
onViewChange: setView,
|
|
1962
|
-
renderThumbnail: host.renderThumbnail,
|
|
1963
1983
|
renderUnsupported: host.renderUnsupported ?? NO_UNSUPPORTED,
|
|
1964
1984
|
layout,
|
|
1965
1985
|
onLayoutChange: setLayout,
|
|
@@ -1983,7 +2003,7 @@ function useFinderModel(host) {
|
|
|
1983
2003
|
});
|
|
1984
2004
|
};
|
|
1985
2005
|
let t33;
|
|
1986
|
-
if ($[
|
|
2006
|
+
if ($[124] !== t26 || $[125] !== t27 || $[126] !== t28 || $[127] !== t29 || $[128] !== t31) {
|
|
1987
2007
|
t33 = {
|
|
1988
2008
|
onKeyDown: t26,
|
|
1989
2009
|
renderAppMenu: t27,
|
|
@@ -1991,13 +2011,13 @@ function useFinderModel(host) {
|
|
|
1991
2011
|
renderTitle: t29,
|
|
1992
2012
|
render: t31
|
|
1993
2013
|
};
|
|
1994
|
-
$[
|
|
1995
|
-
$[
|
|
1996
|
-
$[
|
|
1997
|
-
$[
|
|
1998
|
-
$[
|
|
1999
|
-
$[
|
|
2000
|
-
} else t33 = $[
|
|
2014
|
+
$[124] = t26;
|
|
2015
|
+
$[125] = t27;
|
|
2016
|
+
$[126] = t28;
|
|
2017
|
+
$[127] = t29;
|
|
2018
|
+
$[128] = t31;
|
|
2019
|
+
$[129] = t33;
|
|
2020
|
+
} else t33 = $[129];
|
|
2001
2021
|
return t33;
|
|
2002
2022
|
}
|
|
2003
2023
|
function _temp9(t0) {
|
|
@@ -2023,7 +2043,6 @@ function _temp6(candidate_0) {
|
|
|
2023
2043
|
}
|
|
2024
2044
|
//#endregion
|
|
2025
2045
|
//#region src/components/_internal/computer-files/files.tsx
|
|
2026
|
-
const FILES_APP_ID = "files";
|
|
2027
2046
|
const FILES_ICON = computerAppTile(/* @__PURE__ */ jsx(AppIcon.Image, {
|
|
2028
2047
|
src: desktopArtwork.folder,
|
|
2029
2048
|
alt: ""
|
|
@@ -2054,7 +2073,7 @@ function InfoPanel() {
|
|
|
2054
2073
|
const { volume, path } = React.use(InfoPanels)[id];
|
|
2055
2074
|
let t0;
|
|
2056
2075
|
if ($[0] !== path || $[1] !== volume.sourceKey) {
|
|
2057
|
-
t0 = [...workspaceInfoQueryKey(volume.sourceKey
|
|
2076
|
+
t0 = [...workspaceInfoQueryKey(volume.sourceKey), path];
|
|
2058
2077
|
$[0] = path;
|
|
2059
2078
|
$[1] = volume.sourceKey;
|
|
2060
2079
|
$[2] = t0;
|
|
@@ -2098,7 +2117,7 @@ function infoApp(id, { volume, path }) {
|
|
|
2098
2117
|
id,
|
|
2099
2118
|
label: `${path === "/" ? volume.name : workspaceBasename(path)} Info`,
|
|
2100
2119
|
icon: FILES_ICON,
|
|
2101
|
-
owner:
|
|
2120
|
+
owner: COMPUTER_APP_IDS.files,
|
|
2102
2121
|
panel: true,
|
|
2103
2122
|
defaultWindowSize: {
|
|
2104
2123
|
width: 320,
|
|
@@ -2347,23 +2366,25 @@ function Content() {
|
|
|
2347
2366
|
}
|
|
2348
2367
|
/** What a desktop icon opens into, as Quick Look shows it: a folder's contents, or the file. */
|
|
2349
2368
|
function Preview(t0) {
|
|
2350
|
-
const $ = c(
|
|
2369
|
+
const $ = c(6);
|
|
2351
2370
|
const { entry } = t0;
|
|
2352
2371
|
const { files, renderUnsupported } = useHost();
|
|
2353
2372
|
let t1;
|
|
2354
|
-
if ($[0] !== entry || $[1] !== files.home.
|
|
2373
|
+
if ($[0] !== entry || $[1] !== files.home.resolveFileAsset || $[2] !== files.home.source || $[3] !== files.home.sourceKey || $[4] !== renderUnsupported) {
|
|
2355
2374
|
t1 = /* @__PURE__ */ jsx(ComputerFilesPreview, {
|
|
2356
2375
|
entry,
|
|
2357
2376
|
source: files.home.source,
|
|
2358
2377
|
sourceKey: files.home.sourceKey,
|
|
2378
|
+
resolveFileAsset: files.home.resolveFileAsset,
|
|
2359
2379
|
renderUnsupported
|
|
2360
2380
|
});
|
|
2361
2381
|
$[0] = entry;
|
|
2362
|
-
$[1] = files.home.
|
|
2363
|
-
$[2] = files.home.
|
|
2364
|
-
$[3] =
|
|
2365
|
-
$[4] =
|
|
2366
|
-
|
|
2382
|
+
$[1] = files.home.resolveFileAsset;
|
|
2383
|
+
$[2] = files.home.source;
|
|
2384
|
+
$[3] = files.home.sourceKey;
|
|
2385
|
+
$[4] = renderUnsupported;
|
|
2386
|
+
$[5] = t1;
|
|
2387
|
+
} else t1 = $[5];
|
|
2367
2388
|
return t1;
|
|
2368
2389
|
}
|
|
2369
2390
|
/**
|
|
@@ -2382,7 +2403,7 @@ function Preview(t0) {
|
|
|
2382
2403
|
*/
|
|
2383
2404
|
const ComputerFiles = {
|
|
2384
2405
|
app: {
|
|
2385
|
-
id:
|
|
2406
|
+
id: COMPUTER_APP_IDS.files,
|
|
2386
2407
|
label: "Files",
|
|
2387
2408
|
icon: FILES_ICON,
|
|
2388
2409
|
launcher: "favorite",
|