@mcp-b/react-components 0.65.0 → 0.67.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 +8093 -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/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.js +5 -5
- 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/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-RXV6GGdB.js +112 -0
- package/dist/styles/agent-computer.css +35 -0
- package/dist/styles/base.css +6 -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/index.css +11 -0
- package/dist/styles/recipes.css +42 -0
- 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
|
@@ -0,0 +1,750 @@
|
|
|
1
|
+
import { V as MessageSquareIcon, W as MonitorIcon, _ as ChromeIcon, i as ArrowRightIcon, m as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
|
|
2
|
+
import { Button } from "../foundations/Button.js";
|
|
3
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
+
import { a as useAgentComputerWindow, n as useAgentComputerActions, o as useAgentComputerWindowActive } from "../../AgentComputer-BP9ixGGE.js";
|
|
5
|
+
import { Menubar } from "../foundations/Menubar.js";
|
|
6
|
+
import { FormattedDate } from "../foundations/FormattedDate.js";
|
|
7
|
+
import { AgentScreenSwitcher } from "./AgentScreenSwitcher.js";
|
|
8
|
+
import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
|
|
9
|
+
import { BrowserProfileMenu, BrowserRunPanel, BrowserTabStrip } from "./BrowserRunPanel.js";
|
|
10
|
+
import { n as computerAppTile } from "../../parts-RXV6GGdB.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region src/components/agents-sdk/ComputerScreen.tsx
|
|
15
|
+
const HostContext = React.createContext(null);
|
|
16
|
+
function useHost() {
|
|
17
|
+
const host = React.use(HostContext);
|
|
18
|
+
if (!host) throw new Error("ComputerScreen parts must render inside ComputerScreen.Host.");
|
|
19
|
+
return host;
|
|
20
|
+
}
|
|
21
|
+
/** The browser behind the window this part is in, with its selected page. */
|
|
22
|
+
function useBrowser() {
|
|
23
|
+
const $ = c(11);
|
|
24
|
+
const host = useHost();
|
|
25
|
+
const { id, phone } = useAgentComputerWindow();
|
|
26
|
+
let browser;
|
|
27
|
+
let t0;
|
|
28
|
+
if ($[0] !== host.browsers || $[1] !== id) {
|
|
29
|
+
let t1;
|
|
30
|
+
if ($[4] !== id) {
|
|
31
|
+
t1 = (candidate) => candidate.id === id;
|
|
32
|
+
$[4] = id;
|
|
33
|
+
$[5] = t1;
|
|
34
|
+
} else t1 = $[5];
|
|
35
|
+
browser = host.browsers.find(t1);
|
|
36
|
+
t0 = browser?.tabs.find((tab) => tab.id === browser.selectedTabId) ?? browser?.tabs[0];
|
|
37
|
+
$[0] = host.browsers;
|
|
38
|
+
$[1] = id;
|
|
39
|
+
$[2] = browser;
|
|
40
|
+
$[3] = t0;
|
|
41
|
+
} else {
|
|
42
|
+
browser = $[2];
|
|
43
|
+
t0 = $[3];
|
|
44
|
+
}
|
|
45
|
+
const selected = t0;
|
|
46
|
+
let t1;
|
|
47
|
+
if ($[6] !== browser || $[7] !== host || $[8] !== phone || $[9] !== selected) {
|
|
48
|
+
t1 = {
|
|
49
|
+
host,
|
|
50
|
+
browser,
|
|
51
|
+
selected,
|
|
52
|
+
phone
|
|
53
|
+
};
|
|
54
|
+
$[6] = browser;
|
|
55
|
+
$[7] = host;
|
|
56
|
+
$[8] = phone;
|
|
57
|
+
$[9] = selected;
|
|
58
|
+
$[10] = t1;
|
|
59
|
+
} else t1 = $[10];
|
|
60
|
+
return t1;
|
|
61
|
+
}
|
|
62
|
+
const PanelIdContext = React.createContext("");
|
|
63
|
+
/** The tab panel's id, shared by the tab strip in the title bar and the page in the content. */
|
|
64
|
+
function WindowProvider(t0) {
|
|
65
|
+
const $ = c(3);
|
|
66
|
+
const { children } = t0;
|
|
67
|
+
const t1 = React.useId();
|
|
68
|
+
let t2;
|
|
69
|
+
if ($[0] !== children || $[1] !== t1) {
|
|
70
|
+
t2 = /* @__PURE__ */ jsx(PanelIdContext, {
|
|
71
|
+
value: t1,
|
|
72
|
+
children
|
|
73
|
+
});
|
|
74
|
+
$[0] = children;
|
|
75
|
+
$[1] = t1;
|
|
76
|
+
$[2] = t2;
|
|
77
|
+
} else t2 = $[2];
|
|
78
|
+
return t2;
|
|
79
|
+
}
|
|
80
|
+
const ARTWORK = computerAppTile(/* @__PURE__ */ jsx(ChromeIcon, {}));
|
|
81
|
+
/** Chrome's tab search: every screen, in the Chrome window. */
|
|
82
|
+
function AllScreensButton(t0) {
|
|
83
|
+
const $ = c(6);
|
|
84
|
+
const { className, children } = t0;
|
|
85
|
+
const { openApp } = useAgentComputerActions();
|
|
86
|
+
let t1;
|
|
87
|
+
if ($[0] !== openApp) {
|
|
88
|
+
t1 = () => void openApp("screen");
|
|
89
|
+
$[0] = openApp;
|
|
90
|
+
$[1] = t1;
|
|
91
|
+
} else t1 = $[1];
|
|
92
|
+
let t2;
|
|
93
|
+
if ($[2] !== children || $[3] !== className || $[4] !== t1) {
|
|
94
|
+
t2 = /* @__PURE__ */ jsx(IconButton, {
|
|
95
|
+
className,
|
|
96
|
+
label: "All screens",
|
|
97
|
+
variant: "ghost",
|
|
98
|
+
color: "neutral",
|
|
99
|
+
size: "sm",
|
|
100
|
+
onClick: t1,
|
|
101
|
+
children
|
|
102
|
+
});
|
|
103
|
+
$[2] = children;
|
|
104
|
+
$[3] = className;
|
|
105
|
+
$[4] = t1;
|
|
106
|
+
$[5] = t2;
|
|
107
|
+
} else t2 = $[5];
|
|
108
|
+
return t2;
|
|
109
|
+
}
|
|
110
|
+
/** Previous and next page, in the strip's order. */
|
|
111
|
+
function stepTab(browser, selected, by) {
|
|
112
|
+
return browser.tabs[browser.tabs.indexOf(selected) + by];
|
|
113
|
+
}
|
|
114
|
+
function WindowMenus() {
|
|
115
|
+
const $ = c(32);
|
|
116
|
+
const { host, browser, selected } = useBrowser();
|
|
117
|
+
if (!browser || !selected) return null;
|
|
118
|
+
const { onNewTab, onCloseTab } = host;
|
|
119
|
+
let t0;
|
|
120
|
+
if ($[0] !== browser || $[1] !== selected) {
|
|
121
|
+
t0 = stepTab(browser, selected, -1);
|
|
122
|
+
$[0] = browser;
|
|
123
|
+
$[1] = selected;
|
|
124
|
+
$[2] = t0;
|
|
125
|
+
} else t0 = $[2];
|
|
126
|
+
const previous = t0;
|
|
127
|
+
let t1;
|
|
128
|
+
if ($[3] !== browser || $[4] !== selected) {
|
|
129
|
+
t1 = stepTab(browser, selected, 1);
|
|
130
|
+
$[3] = browser;
|
|
131
|
+
$[4] = selected;
|
|
132
|
+
$[5] = t1;
|
|
133
|
+
} else t1 = $[5];
|
|
134
|
+
const next = t1;
|
|
135
|
+
let t2;
|
|
136
|
+
if ($[6] !== browser || $[7] !== onCloseTab || $[8] !== onNewTab || $[9] !== selected) {
|
|
137
|
+
t2 = onNewTab || onCloseTab ? /* @__PURE__ */ jsxs(Menubar.Menu, { children: [/* @__PURE__ */ jsx(Menubar.Trigger, { children: "File" }), /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
|
|
138
|
+
align: "start",
|
|
139
|
+
sideOffset: 4,
|
|
140
|
+
children: /* @__PURE__ */ jsxs(Menubar.Popup, { children: [onNewTab ? /* @__PURE__ */ jsx(Menubar.Item, {
|
|
141
|
+
onClick: () => onNewTab(browser),
|
|
142
|
+
children: "New Tab"
|
|
143
|
+
}) : null, onCloseTab ? /* @__PURE__ */ jsx(Menubar.Item, {
|
|
144
|
+
onClick: () => onCloseTab(browser, selected.id),
|
|
145
|
+
children: "Close Tab"
|
|
146
|
+
}) : null] })
|
|
147
|
+
}) })] }) : null;
|
|
148
|
+
$[6] = browser;
|
|
149
|
+
$[7] = onCloseTab;
|
|
150
|
+
$[8] = onNewTab;
|
|
151
|
+
$[9] = selected;
|
|
152
|
+
$[10] = t2;
|
|
153
|
+
} else t2 = $[10];
|
|
154
|
+
let t3;
|
|
155
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
156
|
+
t3 = /* @__PURE__ */ jsx(Menubar.Trigger, { children: "Tab" });
|
|
157
|
+
$[11] = t3;
|
|
158
|
+
} else t3 = $[11];
|
|
159
|
+
const t4 = !next;
|
|
160
|
+
let t5;
|
|
161
|
+
if ($[12] !== browser || $[13] !== host || $[14] !== next) {
|
|
162
|
+
t5 = () => next && host.onSelectTab(browser, next.id);
|
|
163
|
+
$[12] = browser;
|
|
164
|
+
$[13] = host;
|
|
165
|
+
$[14] = next;
|
|
166
|
+
$[15] = t5;
|
|
167
|
+
} else t5 = $[15];
|
|
168
|
+
let t6;
|
|
169
|
+
if ($[16] !== t4 || $[17] !== t5) {
|
|
170
|
+
t6 = /* @__PURE__ */ jsx(Menubar.Item, {
|
|
171
|
+
disabled: t4,
|
|
172
|
+
onClick: t5,
|
|
173
|
+
children: "Select Next Tab"
|
|
174
|
+
});
|
|
175
|
+
$[16] = t4;
|
|
176
|
+
$[17] = t5;
|
|
177
|
+
$[18] = t6;
|
|
178
|
+
} else t6 = $[18];
|
|
179
|
+
const t7 = !previous;
|
|
180
|
+
let t8;
|
|
181
|
+
if ($[19] !== browser || $[20] !== host || $[21] !== previous) {
|
|
182
|
+
t8 = () => previous && host.onSelectTab(browser, previous.id);
|
|
183
|
+
$[19] = browser;
|
|
184
|
+
$[20] = host;
|
|
185
|
+
$[21] = previous;
|
|
186
|
+
$[22] = t8;
|
|
187
|
+
} else t8 = $[22];
|
|
188
|
+
let t9;
|
|
189
|
+
if ($[23] !== t7 || $[24] !== t8) {
|
|
190
|
+
t9 = /* @__PURE__ */ jsx(Menubar.Item, {
|
|
191
|
+
disabled: t7,
|
|
192
|
+
onClick: t8,
|
|
193
|
+
children: "Select Previous Tab"
|
|
194
|
+
});
|
|
195
|
+
$[23] = t7;
|
|
196
|
+
$[24] = t8;
|
|
197
|
+
$[25] = t9;
|
|
198
|
+
} else t9 = $[25];
|
|
199
|
+
let t10;
|
|
200
|
+
if ($[26] !== t6 || $[27] !== t9) {
|
|
201
|
+
t10 = /* @__PURE__ */ jsxs(Menubar.Menu, { children: [t3, /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
|
|
202
|
+
align: "start",
|
|
203
|
+
sideOffset: 4,
|
|
204
|
+
children: /* @__PURE__ */ jsxs(Menubar.Popup, { children: [t6, t9] })
|
|
205
|
+
}) })] });
|
|
206
|
+
$[26] = t6;
|
|
207
|
+
$[27] = t9;
|
|
208
|
+
$[28] = t10;
|
|
209
|
+
} else t10 = $[28];
|
|
210
|
+
let t11;
|
|
211
|
+
if ($[29] !== t10 || $[30] !== t2) {
|
|
212
|
+
t11 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t10] });
|
|
213
|
+
$[29] = t10;
|
|
214
|
+
$[30] = t2;
|
|
215
|
+
$[31] = t11;
|
|
216
|
+
} else t11 = $[31];
|
|
217
|
+
return t11;
|
|
218
|
+
}
|
|
219
|
+
/** Chrome on macOS puts the tab strip in the title bar beside the traffic lights. */
|
|
220
|
+
function WindowTitle() {
|
|
221
|
+
const $ = c(17);
|
|
222
|
+
const { host, browser, selected } = useBrowser();
|
|
223
|
+
const panelId = React.use(PanelIdContext);
|
|
224
|
+
if (!browser || !selected) return null;
|
|
225
|
+
let t0;
|
|
226
|
+
if ($[0] !== browser || $[1] !== host) {
|
|
227
|
+
t0 = (tabId) => host.onSelectTab(browser, tabId);
|
|
228
|
+
$[0] = browser;
|
|
229
|
+
$[1] = host;
|
|
230
|
+
$[2] = t0;
|
|
231
|
+
} else t0 = $[2];
|
|
232
|
+
let t1;
|
|
233
|
+
if ($[3] !== browser || $[4] !== host.onCloseTab) {
|
|
234
|
+
t1 = host.onCloseTab && ((tabId_0) => host.onCloseTab(browser, tabId_0));
|
|
235
|
+
$[3] = browser;
|
|
236
|
+
$[4] = host.onCloseTab;
|
|
237
|
+
$[5] = t1;
|
|
238
|
+
} else t1 = $[5];
|
|
239
|
+
let t2;
|
|
240
|
+
if ($[6] !== browser || $[7] !== host.onNewTab) {
|
|
241
|
+
t2 = host.onNewTab && (() => host.onNewTab(browser));
|
|
242
|
+
$[6] = browser;
|
|
243
|
+
$[7] = host.onNewTab;
|
|
244
|
+
$[8] = t2;
|
|
245
|
+
} else t2 = $[8];
|
|
246
|
+
let t3;
|
|
247
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
248
|
+
t3 = /* @__PURE__ */ jsx(AllScreensButton, { children: /* @__PURE__ */ jsx(ChevronDownIcon, {}) });
|
|
249
|
+
$[9] = t3;
|
|
250
|
+
} else t3 = $[9];
|
|
251
|
+
let t4;
|
|
252
|
+
if ($[10] !== browser.tabs || $[11] !== panelId || $[12] !== selected.id || $[13] !== t0 || $[14] !== t1 || $[15] !== t2) {
|
|
253
|
+
t4 = /* @__PURE__ */ jsx(BrowserTabStrip, {
|
|
254
|
+
panelId,
|
|
255
|
+
tabs: browser.tabs,
|
|
256
|
+
selectedTabId: selected.id,
|
|
257
|
+
onSelectTab: t0,
|
|
258
|
+
onCloseTab: t1,
|
|
259
|
+
onNewTab: t2,
|
|
260
|
+
tabSearch: t3
|
|
261
|
+
});
|
|
262
|
+
$[10] = browser.tabs;
|
|
263
|
+
$[11] = panelId;
|
|
264
|
+
$[12] = selected.id;
|
|
265
|
+
$[13] = t0;
|
|
266
|
+
$[14] = t1;
|
|
267
|
+
$[15] = t2;
|
|
268
|
+
$[16] = t4;
|
|
269
|
+
} else t4 = $[16];
|
|
270
|
+
return t4;
|
|
271
|
+
}
|
|
272
|
+
/** The window's own controls: the profile and, for a conversation's browser, the way back to it. */
|
|
273
|
+
function WindowControls(t0) {
|
|
274
|
+
const $ = c(10);
|
|
275
|
+
const { browser } = t0;
|
|
276
|
+
const host = useHost();
|
|
277
|
+
const { threadId } = browser;
|
|
278
|
+
let t1;
|
|
279
|
+
if ($[0] !== browser.profileId || $[1] !== host.onSelectProfile || $[2] !== host.profiles) {
|
|
280
|
+
t1 = /* @__PURE__ */ jsx(BrowserProfileMenu, {
|
|
281
|
+
profiles: host.profiles,
|
|
282
|
+
profileId: browser.profileId,
|
|
283
|
+
onSelectProfile: host.onSelectProfile
|
|
284
|
+
});
|
|
285
|
+
$[0] = browser.profileId;
|
|
286
|
+
$[1] = host.onSelectProfile;
|
|
287
|
+
$[2] = host.profiles;
|
|
288
|
+
$[3] = t1;
|
|
289
|
+
} else t1 = $[3];
|
|
290
|
+
let t2;
|
|
291
|
+
if ($[4] !== host || $[5] !== threadId) {
|
|
292
|
+
t2 = threadId !== null ? /* @__PURE__ */ jsx(IconButton, {
|
|
293
|
+
label: "Open conversation",
|
|
294
|
+
variant: "ghost",
|
|
295
|
+
color: "neutral",
|
|
296
|
+
size: "sm",
|
|
297
|
+
onClick: () => host.onOpenConversation(threadId),
|
|
298
|
+
children: /* @__PURE__ */ jsx(MessageSquareIcon, {})
|
|
299
|
+
}) : null;
|
|
300
|
+
$[4] = host;
|
|
301
|
+
$[5] = threadId;
|
|
302
|
+
$[6] = t2;
|
|
303
|
+
} else t2 = $[6];
|
|
304
|
+
let t3;
|
|
305
|
+
if ($[7] !== t1 || $[8] !== t2) {
|
|
306
|
+
t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
|
|
307
|
+
$[7] = t1;
|
|
308
|
+
$[8] = t2;
|
|
309
|
+
$[9] = t3;
|
|
310
|
+
} else t3 = $[9];
|
|
311
|
+
return t3;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* On a phone the omnibox row is the top bar (Chrome for iOS has no tab
|
|
315
|
+
* strip), so tab search moves down to the one toolbar row iOS gives a browser.
|
|
316
|
+
*/
|
|
317
|
+
function WindowActions() {
|
|
318
|
+
const $ = c(31);
|
|
319
|
+
const { host, browser, selected, phone } = useBrowser();
|
|
320
|
+
if (!phone || !browser || !selected) return null;
|
|
321
|
+
let t0;
|
|
322
|
+
if ($[0] !== browser || $[1] !== selected) {
|
|
323
|
+
t0 = stepTab(browser, selected, -1);
|
|
324
|
+
$[0] = browser;
|
|
325
|
+
$[1] = selected;
|
|
326
|
+
$[2] = t0;
|
|
327
|
+
} else t0 = $[2];
|
|
328
|
+
const previous = t0;
|
|
329
|
+
let t1;
|
|
330
|
+
if ($[3] !== browser || $[4] !== selected) {
|
|
331
|
+
t1 = stepTab(browser, selected, 1);
|
|
332
|
+
$[3] = browser;
|
|
333
|
+
$[4] = selected;
|
|
334
|
+
$[5] = t1;
|
|
335
|
+
} else t1 = $[5];
|
|
336
|
+
const next = t1;
|
|
337
|
+
const t2 = !previous;
|
|
338
|
+
let t3;
|
|
339
|
+
if ($[6] !== browser || $[7] !== host || $[8] !== previous) {
|
|
340
|
+
t3 = () => previous && host.onSelectTab(browser, previous.id);
|
|
341
|
+
$[6] = browser;
|
|
342
|
+
$[7] = host;
|
|
343
|
+
$[8] = previous;
|
|
344
|
+
$[9] = t3;
|
|
345
|
+
} else t3 = $[9];
|
|
346
|
+
let t4;
|
|
347
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
348
|
+
t4 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
349
|
+
$[10] = t4;
|
|
350
|
+
} else t4 = $[10];
|
|
351
|
+
let t5;
|
|
352
|
+
if ($[11] !== t2 || $[12] !== t3) {
|
|
353
|
+
t5 = /* @__PURE__ */ jsx(IconButton, {
|
|
354
|
+
label: "Previous tab",
|
|
355
|
+
variant: "ghost",
|
|
356
|
+
color: "neutral",
|
|
357
|
+
size: "sm",
|
|
358
|
+
disabled: t2,
|
|
359
|
+
onClick: t3,
|
|
360
|
+
children: t4
|
|
361
|
+
});
|
|
362
|
+
$[11] = t2;
|
|
363
|
+
$[12] = t3;
|
|
364
|
+
$[13] = t5;
|
|
365
|
+
} else t5 = $[13];
|
|
366
|
+
const t6 = !next;
|
|
367
|
+
let t7;
|
|
368
|
+
if ($[14] !== browser || $[15] !== host || $[16] !== next) {
|
|
369
|
+
t7 = () => next && host.onSelectTab(browser, next.id);
|
|
370
|
+
$[14] = browser;
|
|
371
|
+
$[15] = host;
|
|
372
|
+
$[16] = next;
|
|
373
|
+
$[17] = t7;
|
|
374
|
+
} else t7 = $[17];
|
|
375
|
+
let t8;
|
|
376
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
377
|
+
t8 = /* @__PURE__ */ jsx(ArrowRightIcon, {});
|
|
378
|
+
$[18] = t8;
|
|
379
|
+
} else t8 = $[18];
|
|
380
|
+
let t9;
|
|
381
|
+
if ($[19] !== t6 || $[20] !== t7) {
|
|
382
|
+
t9 = /* @__PURE__ */ jsx(IconButton, {
|
|
383
|
+
label: "Next tab",
|
|
384
|
+
variant: "ghost",
|
|
385
|
+
color: "neutral",
|
|
386
|
+
size: "sm",
|
|
387
|
+
disabled: t6,
|
|
388
|
+
onClick: t7,
|
|
389
|
+
children: t8
|
|
390
|
+
});
|
|
391
|
+
$[19] = t6;
|
|
392
|
+
$[20] = t7;
|
|
393
|
+
$[21] = t9;
|
|
394
|
+
} else t9 = $[21];
|
|
395
|
+
let t10;
|
|
396
|
+
if ($[22] !== browser.tabs.length) {
|
|
397
|
+
t10 = /* @__PURE__ */ jsx(AllScreensButton, {
|
|
398
|
+
className: "computer-screen__tab-count",
|
|
399
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
400
|
+
"aria-hidden": "true",
|
|
401
|
+
children: browser.tabs.length
|
|
402
|
+
})
|
|
403
|
+
});
|
|
404
|
+
$[22] = browser.tabs.length;
|
|
405
|
+
$[23] = t10;
|
|
406
|
+
} else t10 = $[23];
|
|
407
|
+
let t11;
|
|
408
|
+
if ($[24] !== browser) {
|
|
409
|
+
t11 = /* @__PURE__ */ jsx(WindowControls, { browser });
|
|
410
|
+
$[24] = browser;
|
|
411
|
+
$[25] = t11;
|
|
412
|
+
} else t11 = $[25];
|
|
413
|
+
let t12;
|
|
414
|
+
if ($[26] !== t10 || $[27] !== t11 || $[28] !== t5 || $[29] !== t9) {
|
|
415
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
416
|
+
className: "computer-screen__toolbar",
|
|
417
|
+
"data-recipe": "browser-chrome",
|
|
418
|
+
children: [
|
|
419
|
+
t5,
|
|
420
|
+
t9,
|
|
421
|
+
t10,
|
|
422
|
+
t11
|
|
423
|
+
]
|
|
424
|
+
});
|
|
425
|
+
$[26] = t10;
|
|
426
|
+
$[27] = t11;
|
|
427
|
+
$[28] = t5;
|
|
428
|
+
$[29] = t9;
|
|
429
|
+
$[30] = t12;
|
|
430
|
+
} else t12 = $[30];
|
|
431
|
+
return t12;
|
|
432
|
+
}
|
|
433
|
+
function WindowContent() {
|
|
434
|
+
const $ = c(26);
|
|
435
|
+
const { host, browser, selected, phone } = useBrowser();
|
|
436
|
+
const panelId = React.use(PanelIdContext);
|
|
437
|
+
if (!browser || !selected) return null;
|
|
438
|
+
let t0;
|
|
439
|
+
if ($[0] !== browser || $[1] !== selected) {
|
|
440
|
+
t0 = stepTab(browser, selected, -1);
|
|
441
|
+
$[0] = browser;
|
|
442
|
+
$[1] = selected;
|
|
443
|
+
$[2] = t0;
|
|
444
|
+
} else t0 = $[2];
|
|
445
|
+
const previous = t0;
|
|
446
|
+
let t1;
|
|
447
|
+
if ($[3] !== browser || $[4] !== selected) {
|
|
448
|
+
t1 = stepTab(browser, selected, 1);
|
|
449
|
+
$[3] = browser;
|
|
450
|
+
$[4] = selected;
|
|
451
|
+
$[5] = t1;
|
|
452
|
+
} else t1 = $[5];
|
|
453
|
+
const next = t1;
|
|
454
|
+
const t2 = `${browser.title} screen`;
|
|
455
|
+
let t3;
|
|
456
|
+
if ($[6] !== browser || $[7] !== host || $[8] !== next || $[9] !== phone || $[10] !== previous) {
|
|
457
|
+
t3 = phone ? null : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
458
|
+
label: "Previous tab",
|
|
459
|
+
disabled: !previous,
|
|
460
|
+
onClick: () => previous && host.onSelectTab(browser, previous.id),
|
|
461
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
462
|
+
}), /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
463
|
+
label: "Next tab",
|
|
464
|
+
disabled: !next,
|
|
465
|
+
onClick: () => next && host.onSelectTab(browser, next.id),
|
|
466
|
+
children: /* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
467
|
+
})] });
|
|
468
|
+
$[6] = browser;
|
|
469
|
+
$[7] = host;
|
|
470
|
+
$[8] = next;
|
|
471
|
+
$[9] = phone;
|
|
472
|
+
$[10] = previous;
|
|
473
|
+
$[11] = t3;
|
|
474
|
+
} else t3 = $[11];
|
|
475
|
+
let t4;
|
|
476
|
+
if ($[12] !== browser || $[13] !== phone) {
|
|
477
|
+
t4 = phone ? null : /* @__PURE__ */ jsx(WindowControls, { browser });
|
|
478
|
+
$[12] = browser;
|
|
479
|
+
$[13] = phone;
|
|
480
|
+
$[14] = t4;
|
|
481
|
+
} else t4 = $[14];
|
|
482
|
+
let t5;
|
|
483
|
+
if ($[15] !== browser || $[16] !== panelId || $[17] !== phone || $[18] !== selected) {
|
|
484
|
+
t5 = /* @__PURE__ */ jsx(WindowScreen, {
|
|
485
|
+
browser,
|
|
486
|
+
tab: selected,
|
|
487
|
+
panelId,
|
|
488
|
+
phone
|
|
489
|
+
});
|
|
490
|
+
$[15] = browser;
|
|
491
|
+
$[16] = panelId;
|
|
492
|
+
$[17] = phone;
|
|
493
|
+
$[18] = selected;
|
|
494
|
+
$[19] = t5;
|
|
495
|
+
} else t5 = $[19];
|
|
496
|
+
let t6;
|
|
497
|
+
if ($[20] !== selected.url || $[21] !== t2 || $[22] !== t3 || $[23] !== t4 || $[24] !== t5) {
|
|
498
|
+
t6 = /* @__PURE__ */ jsx(BrowserRunPanel, {
|
|
499
|
+
url: selected.url,
|
|
500
|
+
label: t2,
|
|
501
|
+
urlPlaceholder: "New tab",
|
|
502
|
+
navigation: t3,
|
|
503
|
+
navigationEnd: t4,
|
|
504
|
+
children: t5
|
|
505
|
+
});
|
|
506
|
+
$[20] = selected.url;
|
|
507
|
+
$[21] = t2;
|
|
508
|
+
$[22] = t3;
|
|
509
|
+
$[23] = t4;
|
|
510
|
+
$[24] = t5;
|
|
511
|
+
$[25] = t6;
|
|
512
|
+
} else t6 = $[25];
|
|
513
|
+
return t6;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* The snapshot caption, in the words `AgentScreenSwitcher` puts under a
|
|
517
|
+
* thread's still, appended to the infobar's sentence.
|
|
518
|
+
*/
|
|
519
|
+
function stillCaption(capturedAt) {
|
|
520
|
+
if (capturedAt === void 0 || !Number.isFinite(capturedAt)) return null;
|
|
521
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
522
|
+
/* @__PURE__ */ jsx("span", {
|
|
523
|
+
"aria-hidden": "true",
|
|
524
|
+
children: " · Snapshot · "
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ jsx("span", {
|
|
527
|
+
className: "sigvelo-visually-hidden",
|
|
528
|
+
children: "Last seen "
|
|
529
|
+
}),
|
|
530
|
+
/* @__PURE__ */ jsx(FormattedDate, {
|
|
531
|
+
date: new Date(capturedAt),
|
|
532
|
+
time: true,
|
|
533
|
+
zone: "local"
|
|
534
|
+
})
|
|
535
|
+
] });
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Chrome's infobar, an in-page handoff when one waits on this tab, and the
|
|
539
|
+
* page: live only while the window is key and the employee is online, the
|
|
540
|
+
* tab's last still otherwise. This is the one part of the window that
|
|
541
|
+
* follows focus.
|
|
542
|
+
*/
|
|
543
|
+
function WindowScreen(t0) {
|
|
544
|
+
const $ = c(25);
|
|
545
|
+
const { browser, tab, panelId, phone } = t0;
|
|
546
|
+
const host = useHost();
|
|
547
|
+
const active = useAgentComputerWindowActive();
|
|
548
|
+
const live = active && !host.offline;
|
|
549
|
+
const handoff = browser.handoff && String(browser.handoff.tabId) === tab.id ? browser.handoff : null;
|
|
550
|
+
const t1 = phone ? "" : void 0;
|
|
551
|
+
let t2;
|
|
552
|
+
if ($[0] !== active || $[1] !== host || $[2] !== tab.thumbnail?.capturedAt) {
|
|
553
|
+
t2 = !active ? /* @__PURE__ */ jsxs(Fragment, { children: ["Not streaming", stillCaption(tab.thumbnail?.capturedAt)] }) : host.offline ? /* @__PURE__ */ jsxs(Fragment, { children: ["Employee offline. Last observed page.", stillCaption(tab.thumbnail?.capturedAt)] }) : "Live";
|
|
554
|
+
$[0] = active;
|
|
555
|
+
$[1] = host;
|
|
556
|
+
$[2] = tab.thumbnail?.capturedAt;
|
|
557
|
+
$[3] = t2;
|
|
558
|
+
} else t2 = $[3];
|
|
559
|
+
let t3;
|
|
560
|
+
if ($[4] !== t2) {
|
|
561
|
+
t3 = /* @__PURE__ */ jsx("p", {
|
|
562
|
+
className: "computer-screen__infobar",
|
|
563
|
+
children: t2
|
|
564
|
+
});
|
|
565
|
+
$[4] = t2;
|
|
566
|
+
$[5] = t3;
|
|
567
|
+
} else t3 = $[5];
|
|
568
|
+
let t4;
|
|
569
|
+
if ($[6] !== browser || $[7] !== handoff || $[8] !== host || $[9] !== live) {
|
|
570
|
+
t4 = handoff ? /* @__PURE__ */ jsxs("div", {
|
|
571
|
+
className: "computer-screen__handoff",
|
|
572
|
+
children: [/* @__PURE__ */ jsxs("p", { children: [
|
|
573
|
+
host.employeeName,
|
|
574
|
+
" needs you: ",
|
|
575
|
+
handoff.reason
|
|
576
|
+
] }), /* @__PURE__ */ jsx(Button, {
|
|
577
|
+
size: "sm",
|
|
578
|
+
disabled: !live,
|
|
579
|
+
onClick: () => host.onCompleteHandoff(browser),
|
|
580
|
+
children: "I've done it"
|
|
581
|
+
})]
|
|
582
|
+
}) : null;
|
|
583
|
+
$[6] = browser;
|
|
584
|
+
$[7] = handoff;
|
|
585
|
+
$[8] = host;
|
|
586
|
+
$[9] = live;
|
|
587
|
+
$[10] = t4;
|
|
588
|
+
} else t4 = $[10];
|
|
589
|
+
let t5;
|
|
590
|
+
if ($[11] !== browser || $[12] !== host || $[13] !== live || $[14] !== tab) {
|
|
591
|
+
t5 = live ? host.renderLiveScreen(browser, tab) : tab.thumbnail ? /* @__PURE__ */ jsx("img", {
|
|
592
|
+
src: tab.thumbnail.src,
|
|
593
|
+
alt: tab.thumbnail.alt,
|
|
594
|
+
width: 800,
|
|
595
|
+
height: 500
|
|
596
|
+
}) : /* @__PURE__ */ jsxs("span", {
|
|
597
|
+
className: "computer-screen__placeholder",
|
|
598
|
+
children: [/* @__PURE__ */ jsx(MonitorIcon, {}), "No preview yet"]
|
|
599
|
+
});
|
|
600
|
+
$[11] = browser;
|
|
601
|
+
$[12] = host;
|
|
602
|
+
$[13] = live;
|
|
603
|
+
$[14] = tab;
|
|
604
|
+
$[15] = t5;
|
|
605
|
+
} else t5 = $[15];
|
|
606
|
+
let t6;
|
|
607
|
+
if ($[16] !== panelId || $[17] !== t5 || $[18] !== tab.title) {
|
|
608
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
609
|
+
className: "computer-screen__page",
|
|
610
|
+
id: panelId,
|
|
611
|
+
role: "tabpanel",
|
|
612
|
+
tabIndex: 0,
|
|
613
|
+
"aria-label": tab.title,
|
|
614
|
+
children: t5
|
|
615
|
+
});
|
|
616
|
+
$[16] = panelId;
|
|
617
|
+
$[17] = t5;
|
|
618
|
+
$[18] = tab.title;
|
|
619
|
+
$[19] = t6;
|
|
620
|
+
} else t6 = $[19];
|
|
621
|
+
let t7;
|
|
622
|
+
if ($[20] !== t1 || $[21] !== t3 || $[22] !== t4 || $[23] !== t6) {
|
|
623
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
624
|
+
className: "computer-screen",
|
|
625
|
+
"data-nav-bar": t1,
|
|
626
|
+
children: [
|
|
627
|
+
t3,
|
|
628
|
+
t4,
|
|
629
|
+
t6
|
|
630
|
+
]
|
|
631
|
+
});
|
|
632
|
+
$[20] = t1;
|
|
633
|
+
$[21] = t3;
|
|
634
|
+
$[22] = t4;
|
|
635
|
+
$[23] = t6;
|
|
636
|
+
$[24] = t7;
|
|
637
|
+
} else t7 = $[24];
|
|
638
|
+
return t7;
|
|
639
|
+
}
|
|
640
|
+
/** Chrome's own window: every conversation's screens, as `AgentScreenSwitcher` stills. */
|
|
641
|
+
function ScreensContent() {
|
|
642
|
+
const $ = c(17);
|
|
643
|
+
const host = useHost();
|
|
644
|
+
const { openApp } = useAgentComputerActions();
|
|
645
|
+
let conversations;
|
|
646
|
+
let t0;
|
|
647
|
+
if ($[0] !== host.browsers) {
|
|
648
|
+
conversations = host.browsers.filter(_temp);
|
|
649
|
+
t0 = conversations.map(_temp2);
|
|
650
|
+
$[0] = host.browsers;
|
|
651
|
+
$[1] = conversations;
|
|
652
|
+
$[2] = t0;
|
|
653
|
+
} else {
|
|
654
|
+
conversations = $[1];
|
|
655
|
+
t0 = $[2];
|
|
656
|
+
}
|
|
657
|
+
const threads = t0;
|
|
658
|
+
let t1;
|
|
659
|
+
if ($[3] !== conversations) {
|
|
660
|
+
t1 = (id) => conversations.find((browser_1) => browser_1.id === id);
|
|
661
|
+
$[3] = conversations;
|
|
662
|
+
$[4] = t1;
|
|
663
|
+
} else t1 = $[4];
|
|
664
|
+
const browserFor = t1;
|
|
665
|
+
let t2;
|
|
666
|
+
if ($[5] !== browserFor || $[6] !== host || $[7] !== openApp) {
|
|
667
|
+
t2 = (id_0, tabId) => {
|
|
668
|
+
host.onSelectTab(browserFor(id_0), tabId);
|
|
669
|
+
openApp(id_0);
|
|
670
|
+
};
|
|
671
|
+
$[5] = browserFor;
|
|
672
|
+
$[6] = host;
|
|
673
|
+
$[7] = openApp;
|
|
674
|
+
$[8] = t2;
|
|
675
|
+
} else t2 = $[8];
|
|
676
|
+
let t3;
|
|
677
|
+
if ($[9] !== browserFor || $[10] !== host.onNewTab || $[11] !== openApp) {
|
|
678
|
+
t3 = host.onNewTab && ((id_1) => {
|
|
679
|
+
host.onNewTab(browserFor(id_1));
|
|
680
|
+
openApp(id_1);
|
|
681
|
+
});
|
|
682
|
+
$[9] = browserFor;
|
|
683
|
+
$[10] = host.onNewTab;
|
|
684
|
+
$[11] = openApp;
|
|
685
|
+
$[12] = t3;
|
|
686
|
+
} else t3 = $[12];
|
|
687
|
+
let t4;
|
|
688
|
+
if ($[13] !== t2 || $[14] !== t3 || $[15] !== threads) {
|
|
689
|
+
t4 = /* @__PURE__ */ jsx(AgentScreenSwitcher, {
|
|
690
|
+
threads,
|
|
691
|
+
onWatch: t2,
|
|
692
|
+
onNewTab: t3
|
|
693
|
+
});
|
|
694
|
+
$[13] = t2;
|
|
695
|
+
$[14] = t3;
|
|
696
|
+
$[15] = threads;
|
|
697
|
+
$[16] = t4;
|
|
698
|
+
} else t4 = $[16];
|
|
699
|
+
return t4;
|
|
700
|
+
}
|
|
701
|
+
function _temp2(browser_0) {
|
|
702
|
+
return {
|
|
703
|
+
id: browser_0.id,
|
|
704
|
+
title: browser_0.title,
|
|
705
|
+
description: browser_0.status,
|
|
706
|
+
tabs: browser_0.tabs,
|
|
707
|
+
handoff: browser_0.handoff
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function _temp(browser) {
|
|
711
|
+
return browser.threadId !== null;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Chrome on the computer. `app` is the Dock's Chrome, whose window lists every
|
|
715
|
+
* conversation's screens; `windowFor(browser)` is that browser's own window,
|
|
716
|
+
* under Chrome in the Dock. Both read the host's browsers from `Host`, which
|
|
717
|
+
* wraps the computer.
|
|
718
|
+
*
|
|
719
|
+
* ```tsx
|
|
720
|
+
* <ComputerScreen.Host value={screen}>
|
|
721
|
+
* <AgentComputer
|
|
722
|
+
* apps={[ComputerScreen.app, ...screen.browsers.filter((b) => b.tabs.length).map(ComputerScreen.windowFor)]}
|
|
723
|
+
* />
|
|
724
|
+
* </ComputerScreen.Host>
|
|
725
|
+
* ```
|
|
726
|
+
*/
|
|
727
|
+
const ComputerScreen = {
|
|
728
|
+
Host: HostContext,
|
|
729
|
+
app: {
|
|
730
|
+
id: "screen",
|
|
731
|
+
label: "Chrome",
|
|
732
|
+
icon: ARTWORK,
|
|
733
|
+
launcher: "favorite",
|
|
734
|
+
Content: ScreensContent
|
|
735
|
+
},
|
|
736
|
+
windowFor: (browser) => ({
|
|
737
|
+
id: browser.id,
|
|
738
|
+
label: browser.title,
|
|
739
|
+
icon: ARTWORK,
|
|
740
|
+
owner: "screen",
|
|
741
|
+
titleBar: "unified",
|
|
742
|
+
Provider: WindowProvider,
|
|
743
|
+
Title: WindowTitle,
|
|
744
|
+
Actions: WindowActions,
|
|
745
|
+
Menus: WindowMenus,
|
|
746
|
+
Content: WindowContent
|
|
747
|
+
})
|
|
748
|
+
};
|
|
749
|
+
//#endregion
|
|
750
|
+
export { ComputerScreen };
|