@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
|
@@ -17,39 +17,40 @@ const BROWSER_LIVE_SCREEN_NEGOTIATION_TIMEOUT_MS = 1e4;
|
|
|
17
17
|
*/
|
|
18
18
|
function BrowserLiveScreen(t0) {
|
|
19
19
|
const $ = c(97);
|
|
20
|
-
const { sendSignal: sendHostSignal, subscribeSignals, protocol, getIceServers, label: t1, controlLabel: t2, tabs: t3, tabId: selectedTabId, onTabChange } = t0;
|
|
20
|
+
const { sendSignal: sendHostSignal, subscribeSignals, protocol, getIceServers, label: t1, controlLabel: t2, tabs: t3, tabId: selectedTabId, onTabChange, frame: t4 } = t0;
|
|
21
21
|
const label = t1 === void 0 ? "Employee browser" : t1;
|
|
22
22
|
const controlLabel = t2 === void 0 ? "Control employee browser" : t2;
|
|
23
|
-
let
|
|
23
|
+
let t5;
|
|
24
24
|
if ($[0] !== t3) {
|
|
25
|
-
|
|
25
|
+
t5 = t3 === void 0 ? [] : t3;
|
|
26
26
|
$[0] = t3;
|
|
27
|
-
$[1] =
|
|
28
|
-
} else
|
|
29
|
-
const tabs =
|
|
27
|
+
$[1] = t5;
|
|
28
|
+
} else t5 = $[1];
|
|
29
|
+
const tabs = t5;
|
|
30
|
+
const frame = t4 === void 0 ? "browser" : t4;
|
|
30
31
|
const video = useRef(null);
|
|
31
32
|
const input = useRef(null);
|
|
32
33
|
const channel = useRef(null);
|
|
33
34
|
const geometry = useRef(null);
|
|
34
35
|
const currentProtocol = useRef(protocol);
|
|
35
|
-
let t5;
|
|
36
36
|
let t6;
|
|
37
|
+
let t7;
|
|
37
38
|
if ($[2] !== protocol) {
|
|
38
|
-
|
|
39
|
+
t6 = () => {
|
|
39
40
|
currentProtocol.current = protocol;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
t7 = [protocol];
|
|
42
43
|
$[2] = protocol;
|
|
43
|
-
$[3] =
|
|
44
|
-
$[4] =
|
|
44
|
+
$[3] = t6;
|
|
45
|
+
$[4] = t7;
|
|
45
46
|
} else {
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
t6 = $[3];
|
|
48
|
+
t7 = $[4];
|
|
48
49
|
}
|
|
49
|
-
useLayoutEffect(
|
|
50
|
-
let
|
|
50
|
+
useLayoutEffect(t6, t7);
|
|
51
|
+
let t8;
|
|
51
52
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
52
|
-
|
|
53
|
+
t8 = function sendInput(events) {
|
|
53
54
|
const open = channel.current;
|
|
54
55
|
const status = geometry.current;
|
|
55
56
|
if (open?.readyState !== "open" || !status || events.length === 0) return false;
|
|
@@ -60,22 +61,22 @@ function BrowserLiveScreen(t0) {
|
|
|
60
61
|
}));
|
|
61
62
|
return true;
|
|
62
63
|
};
|
|
63
|
-
$[5] =
|
|
64
|
-
} else
|
|
65
|
-
const sendInput =
|
|
66
|
-
let
|
|
64
|
+
$[5] = t8;
|
|
65
|
+
} else t8 = $[5];
|
|
66
|
+
const sendInput = t8;
|
|
67
|
+
let t9;
|
|
67
68
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
68
|
-
|
|
69
|
+
t9 = function sendCommand(command) {
|
|
69
70
|
const open_0 = channel.current;
|
|
70
71
|
if (open_0?.readyState !== "open") return;
|
|
71
72
|
open_0.send(currentProtocol.current.serializeCommand(command));
|
|
72
73
|
};
|
|
73
|
-
$[6] =
|
|
74
|
-
} else
|
|
75
|
-
const sendCommand =
|
|
76
|
-
let
|
|
74
|
+
$[6] = t9;
|
|
75
|
+
} else t9 = $[6];
|
|
76
|
+
const sendCommand = t9;
|
|
77
|
+
let t10;
|
|
77
78
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
78
|
-
|
|
79
|
+
t10 = function currentViewGeometry() {
|
|
79
80
|
const element = video.current;
|
|
80
81
|
const status_0 = geometry.current;
|
|
81
82
|
if (!element || !status_0) return null;
|
|
@@ -94,12 +95,12 @@ function BrowserLiveScreen(t0) {
|
|
|
94
95
|
zoom: renderedWidth / status_0.metadata.deviceWidth
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
|
-
$[7] =
|
|
98
|
-
} else
|
|
99
|
-
const currentViewGeometry =
|
|
100
|
-
let
|
|
98
|
+
$[7] = t10;
|
|
99
|
+
} else t10 = $[7];
|
|
100
|
+
const currentViewGeometry = t10;
|
|
101
|
+
let t11;
|
|
101
102
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
-
|
|
103
|
+
t11 = function syncInputBounds() {
|
|
103
104
|
const element_0 = input.current;
|
|
104
105
|
if (!element_0) return;
|
|
105
106
|
const view = currentViewGeometry();
|
|
@@ -119,54 +120,54 @@ function BrowserLiveScreen(t0) {
|
|
|
119
120
|
element_0.style.width = `${view.renderedWidth}px`;
|
|
120
121
|
element_0.style.height = `${view.renderedHeight}px`;
|
|
121
122
|
};
|
|
122
|
-
$[8] =
|
|
123
|
-
} else
|
|
124
|
-
const syncInputBounds =
|
|
125
|
-
let
|
|
123
|
+
$[8] = t11;
|
|
124
|
+
} else t11 = $[8];
|
|
125
|
+
const syncInputBounds = t11;
|
|
126
|
+
let t12;
|
|
126
127
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
127
|
-
|
|
128
|
+
t12 = function toPagePoint(event) {
|
|
128
129
|
const view_0 = currentViewGeometry();
|
|
129
130
|
return view_0 ? pointWithin(view_0, event) : null;
|
|
130
131
|
};
|
|
131
|
-
$[9] =
|
|
132
|
-
} else
|
|
133
|
-
const toPagePoint =
|
|
132
|
+
$[9] = t12;
|
|
133
|
+
} else t12 = $[9];
|
|
134
|
+
const toPagePoint = t12;
|
|
134
135
|
const [inputElement, setInputElement] = useState(null);
|
|
135
136
|
const [videoElement, setVideoElement] = useState(null);
|
|
136
137
|
const track = useRef(null);
|
|
137
|
-
let
|
|
138
|
+
let t13;
|
|
138
139
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
139
|
-
|
|
140
|
+
t13 = (element_1) => {
|
|
140
141
|
video.current = element_1;
|
|
141
142
|
if (element_1) element_1.srcObject = track.current;
|
|
142
143
|
setVideoElement(element_1);
|
|
143
144
|
};
|
|
144
|
-
$[10] =
|
|
145
|
-
} else
|
|
146
|
-
const attachVideo =
|
|
147
|
-
let
|
|
145
|
+
$[10] = t13;
|
|
146
|
+
} else t13 = $[10];
|
|
147
|
+
const attachVideo = t13;
|
|
148
|
+
let t14;
|
|
148
149
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
149
|
-
|
|
150
|
+
t14 = (stream) => {
|
|
150
151
|
track.current = stream;
|
|
151
152
|
if (video.current) {
|
|
152
153
|
video.current.srcObject = stream;
|
|
153
154
|
syncInputBounds();
|
|
154
155
|
}
|
|
155
156
|
};
|
|
156
|
-
$[11] =
|
|
157
|
-
} else
|
|
158
|
-
const showTrack =
|
|
157
|
+
$[11] = t14;
|
|
158
|
+
} else t14 = $[11];
|
|
159
|
+
const showTrack = t14;
|
|
159
160
|
const [link, setLink] = useState(null);
|
|
160
161
|
const [failure, setFailure] = useState(null);
|
|
161
|
-
let t14;
|
|
162
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
163
|
-
t14 = () => syncInputBounds();
|
|
164
|
-
$[12] = t14;
|
|
165
|
-
} else t14 = $[12];
|
|
166
|
-
const syncVideoInputBounds = useEffectEvent(t14);
|
|
167
162
|
let t15;
|
|
163
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
164
|
+
t15 = () => syncInputBounds();
|
|
165
|
+
$[12] = t15;
|
|
166
|
+
} else t15 = $[12];
|
|
167
|
+
const syncVideoInputBounds = useEffectEvent(t15);
|
|
168
|
+
let t16;
|
|
168
169
|
if ($[13] !== syncVideoInputBounds || $[14] !== videoElement) {
|
|
169
|
-
|
|
170
|
+
t16 = () => {
|
|
170
171
|
if (!videoElement) return;
|
|
171
172
|
videoElement.addEventListener("resize", syncVideoInputBounds);
|
|
172
173
|
const observer = new ResizeObserver(syncVideoInputBounds);
|
|
@@ -179,51 +180,51 @@ function BrowserLiveScreen(t0) {
|
|
|
179
180
|
};
|
|
180
181
|
$[13] = syncVideoInputBounds;
|
|
181
182
|
$[14] = videoElement;
|
|
182
|
-
$[15] =
|
|
183
|
-
} else
|
|
184
|
-
let
|
|
183
|
+
$[15] = t16;
|
|
184
|
+
} else t16 = $[15];
|
|
185
|
+
let t17;
|
|
185
186
|
if ($[16] !== videoElement) {
|
|
186
|
-
|
|
187
|
+
t17 = [videoElement];
|
|
187
188
|
$[16] = videoElement;
|
|
188
|
-
$[17] =
|
|
189
|
-
} else
|
|
190
|
-
useEffect(
|
|
191
|
-
let
|
|
189
|
+
$[17] = t17;
|
|
190
|
+
} else t17 = $[17];
|
|
191
|
+
useEffect(t16, t17);
|
|
192
|
+
let t18;
|
|
192
193
|
if ($[18] !== sendHostSignal) {
|
|
193
|
-
|
|
194
|
+
t18 = (viewerId, payload) => sendHostSignal({
|
|
194
195
|
viewerId,
|
|
195
196
|
payload
|
|
196
197
|
});
|
|
197
198
|
$[18] = sendHostSignal;
|
|
198
|
-
$[19] =
|
|
199
|
-
} else
|
|
200
|
-
const sendSignal = useEffectEvent(
|
|
201
|
-
let
|
|
199
|
+
$[19] = t18;
|
|
200
|
+
} else t18 = $[19];
|
|
201
|
+
const sendSignal = useEffectEvent(t18);
|
|
202
|
+
let t19;
|
|
202
203
|
if ($[20] !== getIceServers) {
|
|
203
|
-
|
|
204
|
+
t19 = async () => await getIceServers?.() ?? [];
|
|
204
205
|
$[20] = getIceServers;
|
|
205
|
-
$[21] =
|
|
206
|
-
} else
|
|
207
|
-
const loadIceServers = useEffectEvent(
|
|
208
|
-
let
|
|
206
|
+
$[21] = t19;
|
|
207
|
+
} else t19 = $[21];
|
|
208
|
+
const loadIceServers = useEffectEvent(t19);
|
|
209
|
+
let t20;
|
|
209
210
|
if ($[22] !== subscribeSignals) {
|
|
210
|
-
|
|
211
|
+
t20 = (listener) => subscribeSignals(listener);
|
|
211
212
|
$[22] = subscribeSignals;
|
|
212
|
-
$[23] =
|
|
213
|
-
} else
|
|
214
|
-
const subscribe = useEffectEvent(
|
|
215
|
-
let
|
|
213
|
+
$[23] = t20;
|
|
214
|
+
} else t20 = $[23];
|
|
215
|
+
const subscribe = useEffectEvent(t20);
|
|
216
|
+
let t21;
|
|
216
217
|
if ($[24] !== protocol) {
|
|
217
|
-
|
|
218
|
+
t21 = (value) => protocol.parseStatus(value);
|
|
218
219
|
$[24] = protocol;
|
|
219
|
-
$[25] =
|
|
220
|
-
} else
|
|
221
|
-
const parseStatus = useEffectEvent(
|
|
220
|
+
$[25] = t21;
|
|
221
|
+
} else t21 = $[25];
|
|
222
|
+
const parseStatus = useEffectEvent(t21);
|
|
222
223
|
const captureTabId = tabs.some((tab) => tab.tabId === selectedTabId) ? selectedTabId : void 0;
|
|
223
224
|
const dataChannelLabel = protocol.dataChannelLabel;
|
|
224
|
-
let
|
|
225
|
+
let t22;
|
|
225
226
|
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
226
|
-
|
|
227
|
+
t22 = (event_0) => {
|
|
227
228
|
event_0.preventDefault();
|
|
228
229
|
const point = toPagePoint(event_0);
|
|
229
230
|
if (!point) return;
|
|
@@ -236,21 +237,21 @@ function BrowserLiveScreen(t0) {
|
|
|
236
237
|
modifiers: modifiers(event_0)
|
|
237
238
|
}]);
|
|
238
239
|
};
|
|
239
|
-
$[26] =
|
|
240
|
-
} else
|
|
241
|
-
const handleWheel = useEffectEvent(
|
|
240
|
+
$[26] = t22;
|
|
241
|
+
} else t22 = $[26];
|
|
242
|
+
const handleWheel = useEffectEvent(t22);
|
|
242
243
|
const [keyboardOpen, setKeyboardOpen] = useState(false);
|
|
243
244
|
const touch = useRef(null);
|
|
244
245
|
const mousePress = useRef(null);
|
|
245
|
-
let t22;
|
|
246
|
-
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
247
|
-
t22 = /* @__PURE__ */ new Map();
|
|
248
|
-
$[27] = t22;
|
|
249
|
-
} else t22 = $[27];
|
|
250
|
-
const forwardedKeys = useRef(t22);
|
|
251
246
|
let t23;
|
|
247
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
248
|
+
t23 = /* @__PURE__ */ new Map();
|
|
249
|
+
$[27] = t23;
|
|
250
|
+
} else t23 = $[27];
|
|
251
|
+
const forwardedKeys = useRef(t23);
|
|
252
|
+
let t24;
|
|
252
253
|
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
253
|
-
|
|
254
|
+
t24 = function cancelPointerState() {
|
|
254
255
|
const activeTouch = touch.current;
|
|
255
256
|
const activeMouse = mousePress.current;
|
|
256
257
|
if (activeTouch) clearTimeout(activeTouch.holdTimer);
|
|
@@ -261,12 +262,12 @@ function BrowserLiveScreen(t0) {
|
|
|
261
262
|
if (activeMouse?.pressed) releases.push(release(activeMouse.lastPage, activeMouse.button, 0, activeMouse.clickCount, activeMouse.modifiers));
|
|
262
263
|
sendInput(releases);
|
|
263
264
|
};
|
|
264
|
-
$[28] =
|
|
265
|
-
} else
|
|
266
|
-
const cancelPointerState =
|
|
267
|
-
let
|
|
265
|
+
$[28] = t24;
|
|
266
|
+
} else t24 = $[28];
|
|
267
|
+
const cancelPointerState = t24;
|
|
268
|
+
let t25;
|
|
268
269
|
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
269
|
-
|
|
270
|
+
t25 = function cancelForwardedKeys() {
|
|
270
271
|
const releases_0 = [];
|
|
271
272
|
for (const { key, code, keyCode } of forwardedKeys.current.values()) releases_0.push({
|
|
272
273
|
kind: "key",
|
|
@@ -279,33 +280,33 @@ function BrowserLiveScreen(t0) {
|
|
|
279
280
|
forwardedKeys.current.clear();
|
|
280
281
|
sendInput(releases_0);
|
|
281
282
|
};
|
|
282
|
-
$[29] =
|
|
283
|
-
} else
|
|
284
|
-
const cancelForwardedKeys =
|
|
285
|
-
let t25;
|
|
286
|
-
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
287
|
-
t25 = () => cancelForwardedKeys();
|
|
288
|
-
$[30] = t25;
|
|
289
|
-
} else t25 = $[30];
|
|
290
|
-
const releaseKeysOnWindowBlur = useEffectEvent(t25);
|
|
283
|
+
$[29] = t25;
|
|
284
|
+
} else t25 = $[29];
|
|
285
|
+
const cancelForwardedKeys = t25;
|
|
291
286
|
let t26;
|
|
287
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
288
|
+
t26 = () => cancelForwardedKeys();
|
|
289
|
+
$[30] = t26;
|
|
290
|
+
} else t26 = $[30];
|
|
291
|
+
const releaseKeysOnWindowBlur = useEffectEvent(t26);
|
|
292
|
+
let t27;
|
|
292
293
|
if ($[31] !== releaseKeysOnWindowBlur) {
|
|
293
|
-
|
|
294
|
+
t27 = () => {
|
|
294
295
|
window.addEventListener("blur", releaseKeysOnWindowBlur);
|
|
295
296
|
return () => window.removeEventListener("blur", releaseKeysOnWindowBlur);
|
|
296
297
|
};
|
|
297
298
|
$[31] = releaseKeysOnWindowBlur;
|
|
298
|
-
$[32] =
|
|
299
|
-
} else
|
|
300
|
-
let t27;
|
|
301
|
-
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
302
|
-
t27 = [];
|
|
303
|
-
$[33] = t27;
|
|
304
|
-
} else t27 = $[33];
|
|
305
|
-
useEffect(t26, t27);
|
|
299
|
+
$[32] = t27;
|
|
300
|
+
} else t27 = $[32];
|
|
306
301
|
let t28;
|
|
302
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
303
|
+
t28 = [];
|
|
304
|
+
$[33] = t28;
|
|
305
|
+
} else t28 = $[33];
|
|
306
|
+
useEffect(t27, t28);
|
|
307
|
+
let t29;
|
|
307
308
|
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
308
|
-
|
|
309
|
+
t29 = (element_2) => {
|
|
309
310
|
if (input.current !== element_2) {
|
|
310
311
|
cancelPointerState();
|
|
311
312
|
cancelForwardedKeys();
|
|
@@ -314,33 +315,33 @@ function BrowserLiveScreen(t0) {
|
|
|
314
315
|
setInputElement(element_2);
|
|
315
316
|
syncInputBounds();
|
|
316
317
|
};
|
|
317
|
-
$[34] =
|
|
318
|
-
} else
|
|
319
|
-
const attachInput =
|
|
320
|
-
let
|
|
318
|
+
$[34] = t29;
|
|
319
|
+
} else t29 = $[34];
|
|
320
|
+
const attachInput = t29;
|
|
321
|
+
let t30;
|
|
321
322
|
if ($[35] !== handleWheel || $[36] !== inputElement) {
|
|
322
|
-
|
|
323
|
+
t30 = () => {
|
|
323
324
|
if (!inputElement) return;
|
|
324
325
|
inputElement.addEventListener("wheel", handleWheel, { passive: false });
|
|
325
326
|
return () => inputElement.removeEventListener("wheel", handleWheel);
|
|
326
327
|
};
|
|
327
328
|
$[35] = handleWheel;
|
|
328
329
|
$[36] = inputElement;
|
|
329
|
-
$[37] =
|
|
330
|
-
} else
|
|
331
|
-
let
|
|
330
|
+
$[37] = t30;
|
|
331
|
+
} else t30 = $[37];
|
|
332
|
+
let t31;
|
|
332
333
|
if ($[38] !== inputElement) {
|
|
333
|
-
|
|
334
|
+
t31 = [inputElement];
|
|
334
335
|
$[38] = inputElement;
|
|
335
|
-
$[39] =
|
|
336
|
-
} else
|
|
337
|
-
useEffect(
|
|
336
|
+
$[39] = t31;
|
|
337
|
+
} else t31 = $[39];
|
|
338
|
+
useEffect(t30, t31);
|
|
338
339
|
const live = captureTabId !== void 0 && link?.tabId === captureTabId ? link : null;
|
|
339
340
|
const phase = captureTabId === void 0 ? "idle" : live?.phase ?? "connecting";
|
|
340
341
|
const streamed = live?.streamed ?? null;
|
|
341
|
-
let
|
|
342
|
+
let t32;
|
|
342
343
|
if ($[40] !== captureTabId || $[41] !== dataChannelLabel || $[42] !== loadIceServers || $[43] !== parseStatus || $[44] !== sendSignal || $[45] !== subscribe) {
|
|
343
|
-
|
|
344
|
+
t32 = () => {
|
|
344
345
|
if (captureTabId === void 0) return;
|
|
345
346
|
const tabId = captureTabId;
|
|
346
347
|
const report = (patch) => setLink((current) => ({
|
|
@@ -425,8 +426,8 @@ function BrowserLiveScreen(t0) {
|
|
|
425
426
|
const currentAttempt = attempt;
|
|
426
427
|
try {
|
|
427
428
|
await connectAs(currentAttempt);
|
|
428
|
-
} catch (
|
|
429
|
-
const error_1 =
|
|
429
|
+
} catch (t33) {
|
|
430
|
+
const error_1 = t33;
|
|
430
431
|
if (currentAttempt === attempt) scheduleReconnect(error_1);
|
|
431
432
|
}
|
|
432
433
|
};
|
|
@@ -545,23 +546,23 @@ function BrowserLiveScreen(t0) {
|
|
|
545
546
|
$[43] = parseStatus;
|
|
546
547
|
$[44] = sendSignal;
|
|
547
548
|
$[45] = subscribe;
|
|
548
|
-
$[46] =
|
|
549
|
-
} else
|
|
550
|
-
let
|
|
549
|
+
$[46] = t32;
|
|
550
|
+
} else t32 = $[46];
|
|
551
|
+
let t33;
|
|
551
552
|
if ($[47] !== captureTabId || $[48] !== dataChannelLabel) {
|
|
552
|
-
|
|
553
|
+
t33 = [
|
|
553
554
|
dataChannelLabel,
|
|
554
555
|
captureTabId,
|
|
555
556
|
showTrack
|
|
556
557
|
];
|
|
557
558
|
$[47] = captureTabId;
|
|
558
559
|
$[48] = dataChannelLabel;
|
|
559
|
-
$[49] =
|
|
560
|
-
} else
|
|
561
|
-
useEffect(
|
|
562
|
-
let
|
|
560
|
+
$[49] = t33;
|
|
561
|
+
} else t33 = $[49];
|
|
562
|
+
useEffect(t32, t33);
|
|
563
|
+
let t34;
|
|
563
564
|
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
564
|
-
|
|
565
|
+
t34 = function beginTouch(event_4) {
|
|
565
566
|
if (touch.current) return;
|
|
566
567
|
const view_1 = currentViewGeometry();
|
|
567
568
|
const startPage = view_1 ? pointWithin(view_1, event_4) : null;
|
|
@@ -586,12 +587,12 @@ function BrowserLiveScreen(t0) {
|
|
|
586
587
|
touch.current = gesture;
|
|
587
588
|
event_4.currentTarget.setPointerCapture(event_4.pointerId);
|
|
588
589
|
};
|
|
589
|
-
$[50] =
|
|
590
|
-
} else
|
|
591
|
-
const beginTouch =
|
|
592
|
-
let
|
|
590
|
+
$[50] = t34;
|
|
591
|
+
} else t34 = $[50];
|
|
592
|
+
const beginTouch = t34;
|
|
593
|
+
let t35;
|
|
593
594
|
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
594
|
-
|
|
595
|
+
t35 = function moveTouch(event_5) {
|
|
595
596
|
const gesture_0 = touch.current;
|
|
596
597
|
if (!gesture_0 || event_5.pointerId !== gesture_0.pointerId) return;
|
|
597
598
|
const client_0 = {
|
|
@@ -621,12 +622,12 @@ function BrowserLiveScreen(t0) {
|
|
|
621
622
|
gesture_0.lastPage = point_0;
|
|
622
623
|
sendInput([move(point_0, 1, 0)]);
|
|
623
624
|
};
|
|
624
|
-
$[51] =
|
|
625
|
-
} else
|
|
626
|
-
const moveTouch =
|
|
627
|
-
let
|
|
625
|
+
$[51] = t35;
|
|
626
|
+
} else t35 = $[51];
|
|
627
|
+
const moveTouch = t35;
|
|
628
|
+
let t36;
|
|
628
629
|
if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
|
|
629
|
-
|
|
630
|
+
t36 = function endTouch(event_6, cancelled) {
|
|
630
631
|
const gesture_1 = touch.current;
|
|
631
632
|
if (!gesture_1 || event_6.pointerId !== gesture_1.pointerId) return;
|
|
632
633
|
touch.current = null;
|
|
@@ -643,12 +644,12 @@ function BrowserLiveScreen(t0) {
|
|
|
643
644
|
}
|
|
644
645
|
if (gesture_1.mode === "drag") sendInput([release(gesture_1.lastPage, "left", 0, 1, 0)]);
|
|
645
646
|
};
|
|
646
|
-
$[52] =
|
|
647
|
-
} else
|
|
648
|
-
const endTouch =
|
|
649
|
-
let
|
|
647
|
+
$[52] = t36;
|
|
648
|
+
} else t36 = $[52];
|
|
649
|
+
const endTouch = t36;
|
|
650
|
+
let t37;
|
|
650
651
|
if ($[53] === Symbol.for("react.memo_cache_sentinel")) {
|
|
651
|
-
|
|
652
|
+
t37 = function endMouse(event_7) {
|
|
652
653
|
const gesture_2 = mousePress.current;
|
|
653
654
|
if (!gesture_2 || event_7.pointerId !== gesture_2.pointerId) return;
|
|
654
655
|
const point_1 = toPagePoint(event_7) ?? gesture_2.lastPage;
|
|
@@ -656,22 +657,22 @@ function BrowserLiveScreen(t0) {
|
|
|
656
657
|
if (!gesture_2.pressed) return;
|
|
657
658
|
sendInput([release(point_1, gesture_2.button, event_7.buttons, gesture_2.clickCount, modifiers(event_7))]);
|
|
658
659
|
};
|
|
659
|
-
$[53] =
|
|
660
|
-
} else
|
|
661
|
-
const endMouse =
|
|
660
|
+
$[53] = t37;
|
|
661
|
+
} else t37 = $[53];
|
|
662
|
+
const endMouse = t37;
|
|
662
663
|
const notice = failure ?? (phase === "streaming" ? void 0 : PHASE_TEXT[phase]);
|
|
663
|
-
let
|
|
664
|
+
let t38;
|
|
664
665
|
if ($[54] !== streamed || $[55] !== tabs) {
|
|
665
|
-
|
|
666
|
+
t38 = streamed ? tabs.find((tab_0) => tab_0.tabId === streamed.tabId) : void 0;
|
|
666
667
|
$[54] = streamed;
|
|
667
668
|
$[55] = tabs;
|
|
668
|
-
$[56] =
|
|
669
|
-
} else
|
|
670
|
-
const streamedTab =
|
|
669
|
+
$[56] = t38;
|
|
670
|
+
} else t38 = $[56];
|
|
671
|
+
const streamedTab = t38;
|
|
671
672
|
const displayUrl = streamed?.pageUrl ?? streamedTab?.url ?? "";
|
|
672
|
-
let
|
|
673
|
+
let t39;
|
|
673
674
|
if ($[57] !== controlLabel || $[58] !== keyboardOpen || $[59] !== notice) {
|
|
674
|
-
|
|
675
|
+
t39 = (_placement, statusId) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
675
676
|
/* @__PURE__ */ jsx("video", {
|
|
676
677
|
ref: attachVideo,
|
|
677
678
|
autoPlay: true,
|
|
@@ -869,39 +870,40 @@ function BrowserLiveScreen(t0) {
|
|
|
869
870
|
$[57] = controlLabel;
|
|
870
871
|
$[58] = keyboardOpen;
|
|
871
872
|
$[59] = notice;
|
|
872
|
-
$[60] =
|
|
873
|
-
} else
|
|
874
|
-
let
|
|
875
|
-
if ($[61] !== notice || $[62] !== phase || $[63] !==
|
|
876
|
-
|
|
873
|
+
$[60] = t39;
|
|
874
|
+
} else t39 = $[60];
|
|
875
|
+
let t40;
|
|
876
|
+
if ($[61] !== notice || $[62] !== phase || $[63] !== t39) {
|
|
877
|
+
t40 = /* @__PURE__ */ jsx(BrowserLiveView, {
|
|
877
878
|
expandable: false,
|
|
878
879
|
fill: true,
|
|
879
880
|
phase,
|
|
880
881
|
statusLabel: notice,
|
|
881
|
-
renderMedia:
|
|
882
|
+
renderMedia: t39
|
|
882
883
|
});
|
|
883
884
|
$[61] = notice;
|
|
884
885
|
$[62] = phase;
|
|
885
|
-
$[63] =
|
|
886
|
-
$[64] =
|
|
887
|
-
} else
|
|
888
|
-
const view_2 =
|
|
889
|
-
|
|
886
|
+
$[63] = t39;
|
|
887
|
+
$[64] = t40;
|
|
888
|
+
} else t40 = $[64];
|
|
889
|
+
const view_2 = t40;
|
|
890
|
+
if (frame === "page") return view_2;
|
|
891
|
+
let t41;
|
|
890
892
|
if ($[65] !== tabs) {
|
|
891
|
-
|
|
893
|
+
t41 = tabs.map(_temp3);
|
|
892
894
|
$[65] = tabs;
|
|
893
|
-
$[66] =
|
|
894
|
-
} else
|
|
895
|
-
const
|
|
896
|
-
let
|
|
895
|
+
$[66] = t41;
|
|
896
|
+
} else t41 = $[66];
|
|
897
|
+
const t42 = captureTabId === void 0 ? null : String(captureTabId);
|
|
898
|
+
let t43;
|
|
897
899
|
if ($[67] !== onTabChange) {
|
|
898
|
-
|
|
900
|
+
t43 = (id) => onTabChange(Number(id));
|
|
899
901
|
$[67] = onTabChange;
|
|
900
|
-
$[68] =
|
|
901
|
-
} else
|
|
902
|
-
let
|
|
902
|
+
$[68] = t43;
|
|
903
|
+
} else t43 = $[68];
|
|
904
|
+
let t44;
|
|
903
905
|
if ($[69] !== streamed) {
|
|
904
|
-
|
|
906
|
+
t44 = (next) => {
|
|
905
907
|
if (!streamed) return;
|
|
906
908
|
const url = normalizeOpenUrl(next);
|
|
907
909
|
if (url) sendCommand({
|
|
@@ -911,101 +913,101 @@ function BrowserLiveScreen(t0) {
|
|
|
911
913
|
});
|
|
912
914
|
};
|
|
913
915
|
$[69] = streamed;
|
|
914
|
-
$[70] =
|
|
915
|
-
} else
|
|
916
|
-
const
|
|
917
|
-
const t45 = !streamed;
|
|
916
|
+
$[70] = t44;
|
|
917
|
+
} else t44 = $[70];
|
|
918
|
+
const t45 = streamed ? "Open a page…" : "Nothing is streaming";
|
|
918
919
|
const t46 = !streamed;
|
|
919
|
-
|
|
920
|
+
const t47 = !streamed;
|
|
921
|
+
let t48;
|
|
920
922
|
if ($[71] !== streamed) {
|
|
921
|
-
|
|
923
|
+
t48 = () => streamed && sendCommand({
|
|
922
924
|
kind: "navigate",
|
|
923
925
|
tabId: streamed.tabId,
|
|
924
926
|
action: "back"
|
|
925
927
|
});
|
|
926
928
|
$[71] = streamed;
|
|
927
|
-
$[72] =
|
|
928
|
-
} else
|
|
929
|
-
let t48;
|
|
930
|
-
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
931
|
-
t48 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
932
|
-
$[73] = t48;
|
|
933
|
-
} else t48 = $[73];
|
|
929
|
+
$[72] = t48;
|
|
930
|
+
} else t48 = $[72];
|
|
934
931
|
let t49;
|
|
935
|
-
if ($[
|
|
936
|
-
t49 = /* @__PURE__ */ jsx(
|
|
932
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
933
|
+
t49 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
934
|
+
$[73] = t49;
|
|
935
|
+
} else t49 = $[73];
|
|
936
|
+
let t50;
|
|
937
|
+
if ($[74] !== t47 || $[75] !== t48) {
|
|
938
|
+
t50 = /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
937
939
|
label: "Back",
|
|
938
|
-
disabled:
|
|
939
|
-
onClick:
|
|
940
|
-
children:
|
|
940
|
+
disabled: t47,
|
|
941
|
+
onClick: t48,
|
|
942
|
+
children: t49
|
|
941
943
|
});
|
|
942
|
-
$[74] =
|
|
943
|
-
$[75] =
|
|
944
|
-
$[76] =
|
|
945
|
-
} else
|
|
946
|
-
const
|
|
947
|
-
let
|
|
944
|
+
$[74] = t47;
|
|
945
|
+
$[75] = t48;
|
|
946
|
+
$[76] = t50;
|
|
947
|
+
} else t50 = $[76];
|
|
948
|
+
const t51 = !streamed;
|
|
949
|
+
let t52;
|
|
948
950
|
if ($[77] !== streamed) {
|
|
949
|
-
|
|
951
|
+
t52 = () => streamed && sendCommand({
|
|
950
952
|
kind: "navigate",
|
|
951
953
|
tabId: streamed.tabId,
|
|
952
954
|
action: "reload"
|
|
953
955
|
});
|
|
954
956
|
$[77] = streamed;
|
|
955
|
-
$[78] =
|
|
956
|
-
} else
|
|
957
|
-
let t52;
|
|
958
|
-
if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
|
|
959
|
-
t52 = /* @__PURE__ */ jsx(RefreshIcon, {});
|
|
960
|
-
$[79] = t52;
|
|
961
|
-
} else t52 = $[79];
|
|
957
|
+
$[78] = t52;
|
|
958
|
+
} else t52 = $[78];
|
|
962
959
|
let t53;
|
|
963
|
-
if ($[
|
|
964
|
-
t53 = /* @__PURE__ */ jsx(
|
|
960
|
+
if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
|
|
961
|
+
t53 = /* @__PURE__ */ jsx(RefreshIcon, {});
|
|
962
|
+
$[79] = t53;
|
|
963
|
+
} else t53 = $[79];
|
|
964
|
+
let t54;
|
|
965
|
+
if ($[80] !== t51 || $[81] !== t52) {
|
|
966
|
+
t54 = /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
965
967
|
label: "Reload",
|
|
966
|
-
disabled:
|
|
967
|
-
onClick:
|
|
968
|
-
children:
|
|
968
|
+
disabled: t51,
|
|
969
|
+
onClick: t52,
|
|
970
|
+
children: t53
|
|
969
971
|
});
|
|
970
|
-
$[80] =
|
|
971
|
-
$[81] =
|
|
972
|
-
$[82] =
|
|
973
|
-
} else
|
|
974
|
-
let t54;
|
|
975
|
-
if ($[83] !== t49 || $[84] !== t53) {
|
|
976
|
-
t54 = /* @__PURE__ */ jsxs(Fragment, { children: [t49, t53] });
|
|
977
|
-
$[83] = t49;
|
|
978
|
-
$[84] = t53;
|
|
979
|
-
$[85] = t54;
|
|
980
|
-
} else t54 = $[85];
|
|
972
|
+
$[80] = t51;
|
|
973
|
+
$[81] = t52;
|
|
974
|
+
$[82] = t54;
|
|
975
|
+
} else t54 = $[82];
|
|
981
976
|
let t55;
|
|
982
|
-
if ($[
|
|
983
|
-
t55 = /* @__PURE__ */
|
|
977
|
+
if ($[83] !== t50 || $[84] !== t54) {
|
|
978
|
+
t55 = /* @__PURE__ */ jsxs(Fragment, { children: [t50, t54] });
|
|
979
|
+
$[83] = t50;
|
|
980
|
+
$[84] = t54;
|
|
981
|
+
$[85] = t55;
|
|
982
|
+
} else t55 = $[85];
|
|
983
|
+
let t56;
|
|
984
|
+
if ($[86] !== displayUrl || $[87] !== label || $[88] !== t41 || $[89] !== t42 || $[90] !== t43 || $[91] !== t44 || $[92] !== t45 || $[93] !== t46 || $[94] !== t55 || $[95] !== view_2) {
|
|
985
|
+
t56 = /* @__PURE__ */ jsx(BrowserRunPanel, {
|
|
984
986
|
label,
|
|
985
|
-
tabs:
|
|
986
|
-
selectedTabId:
|
|
987
|
-
onSelectTab:
|
|
987
|
+
tabs: t41,
|
|
988
|
+
selectedTabId: t42,
|
|
989
|
+
onSelectTab: t43,
|
|
988
990
|
url: displayUrl,
|
|
989
|
-
onOpenUrl:
|
|
991
|
+
onOpenUrl: t44,
|
|
990
992
|
urlLabel: "Streamed page URL",
|
|
991
|
-
urlPlaceholder:
|
|
992
|
-
urlDisabled:
|
|
993
|
-
navigation:
|
|
993
|
+
urlPlaceholder: t45,
|
|
994
|
+
urlDisabled: t46,
|
|
995
|
+
navigation: t55,
|
|
994
996
|
children: view_2
|
|
995
997
|
});
|
|
996
998
|
$[86] = displayUrl;
|
|
997
999
|
$[87] = label;
|
|
998
|
-
$[88] =
|
|
999
|
-
$[89] =
|
|
1000
|
-
$[90] =
|
|
1001
|
-
$[91] =
|
|
1002
|
-
$[92] =
|
|
1003
|
-
$[93] =
|
|
1004
|
-
$[94] =
|
|
1000
|
+
$[88] = t41;
|
|
1001
|
+
$[89] = t42;
|
|
1002
|
+
$[90] = t43;
|
|
1003
|
+
$[91] = t44;
|
|
1004
|
+
$[92] = t45;
|
|
1005
|
+
$[93] = t46;
|
|
1006
|
+
$[94] = t55;
|
|
1005
1007
|
$[95] = view_2;
|
|
1006
|
-
$[96] =
|
|
1007
|
-
} else
|
|
1008
|
-
return
|
|
1008
|
+
$[96] = t56;
|
|
1009
|
+
} else t56 = $[96];
|
|
1010
|
+
return t56;
|
|
1009
1011
|
}
|
|
1010
1012
|
function _temp3(tab_1) {
|
|
1011
1013
|
return {
|