@mcp-b/react-components 0.65.0 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/AgentComputer-2uYB8kmu.js +8084 -0
  2. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
  3. package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
  4. package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
  5. package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
  6. package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
  7. package/dist/assets/wallpapers/README.md +31 -0
  8. package/dist/assets/wallpapers/alpine.webp +0 -0
  9. package/dist/assets/wallpapers/dusk.webp +0 -0
  10. package/dist/assets/wallpapers/ember.webp +0 -0
  11. package/dist/assets/wallpapers/graphite.webp +0 -0
  12. package/dist/assets/wallpapers/sigvelo.webp +0 -0
  13. package/dist/assets/wallpapers/tide.webp +0 -0
  14. package/dist/automations-host-DPORjdc7.js +17 -0
  15. package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
  16. package/dist/components/agents-sdk/AgentComputer.js +1 -8044
  17. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
  18. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
  20. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
  21. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
  22. package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
  23. package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
  24. package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
  25. package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
  26. package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
  27. package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
  28. package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
  29. package/dist/components/agents-sdk/ComputerHome.js +90 -0
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
  31. package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
  32. package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
  33. package/dist/components/agents-sdk/ComputerScreen.js +750 -0
  34. package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
  35. package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
  36. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
  37. package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
  38. package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
  39. package/dist/components/agents-sdk/ComputerViewer.js +339 -0
  40. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
  41. package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
  42. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  44. package/dist/components/agents-sdk/EmployeeChrome.js +4 -4
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
  46. package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
  47. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  49. package/dist/components/agents-sdk/ManagerOfficeScreens.js +1 -1
  50. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  51. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  52. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  53. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
  54. package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
  55. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  56. package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
  57. package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
  58. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  59. package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
  60. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  61. package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
  62. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  63. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
  64. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
  65. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
  66. package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
  67. package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
  68. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
  69. package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
  70. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
  71. package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
  72. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
  73. package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
  74. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  75. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
  76. package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
  77. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  78. package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
  79. package/dist/components/ai-sdk/Goal.d.ts +1 -2
  80. package/dist/components/ai-sdk/Goal.js +1 -2
  81. package/dist/components/extension/FirstRunSetup.js +5 -5
  82. package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
  83. package/dist/components/general-purpose/CommandPalette.js +90 -82
  84. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  85. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  86. package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
  87. package/dist/components/nanites/AgentConnection.js +1 -1
  88. package/dist/parts-BxJC0QVb.js +112 -0
  89. package/dist/styles/agent-computer.css +28 -0
  90. package/dist/styles/base.css +6 -0
  91. package/dist/styles/computer-app-tile.css +20 -0
  92. package/dist/styles/computer-automations.css +454 -0
  93. package/dist/styles/computer-calendar.css +648 -0
  94. package/dist/styles/computer-files.css +566 -0
  95. package/dist/styles/computer-home.css +90 -0
  96. package/dist/styles/computer-notifications.css +242 -0
  97. package/dist/styles/computer-screen.css +89 -0
  98. package/dist/styles/computer-settings.css +550 -0
  99. package/dist/styles/computer-spotlight.css +7 -0
  100. package/dist/styles/computer-viewer.css +130 -0
  101. package/dist/styles/index.css +11 -0
  102. package/dist/styles/recipes.css +42 -0
  103. package/dist/styles/workspace-document-frame.css +31 -0
  104. package/package.json +2 -2
  105. package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
  106. package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
  107. 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 t4;
23
+ let t5;
24
24
  if ($[0] !== t3) {
25
- t4 = t3 === void 0 ? [] : t3;
25
+ t5 = t3 === void 0 ? [] : t3;
26
26
  $[0] = t3;
27
- $[1] = t4;
28
- } else t4 = $[1];
29
- const tabs = t4;
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
- t5 = () => {
39
+ t6 = () => {
39
40
  currentProtocol.current = protocol;
40
41
  };
41
- t6 = [protocol];
42
+ t7 = [protocol];
42
43
  $[2] = protocol;
43
- $[3] = t5;
44
- $[4] = t6;
44
+ $[3] = t6;
45
+ $[4] = t7;
45
46
  } else {
46
- t5 = $[3];
47
- t6 = $[4];
47
+ t6 = $[3];
48
+ t7 = $[4];
48
49
  }
49
- useLayoutEffect(t5, t6);
50
- let t7;
50
+ useLayoutEffect(t6, t7);
51
+ let t8;
51
52
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
52
- t7 = function sendInput(events) {
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] = t7;
64
- } else t7 = $[5];
65
- const sendInput = t7;
66
- let t8;
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
- t8 = function sendCommand(command) {
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] = t8;
74
- } else t8 = $[6];
75
- const sendCommand = t8;
76
- let t9;
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
- t9 = function currentViewGeometry() {
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] = t9;
98
- } else t9 = $[7];
99
- const currentViewGeometry = t9;
100
- let t10;
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
- t10 = function syncInputBounds() {
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] = t10;
123
- } else t10 = $[8];
124
- const syncInputBounds = t10;
125
- let t11;
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
- t11 = function toPagePoint(event) {
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] = t11;
132
- } else t11 = $[9];
133
- const toPagePoint = t11;
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 t12;
138
+ let t13;
138
139
  if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
139
- t12 = (element_1) => {
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] = t12;
145
- } else t12 = $[10];
146
- const attachVideo = t12;
147
- let t13;
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
- t13 = (stream) => {
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] = t13;
157
- } else t13 = $[11];
158
- const showTrack = t13;
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
- t15 = () => {
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] = t15;
183
- } else t15 = $[15];
184
- let t16;
183
+ $[15] = t16;
184
+ } else t16 = $[15];
185
+ let t17;
185
186
  if ($[16] !== videoElement) {
186
- t16 = [videoElement];
187
+ t17 = [videoElement];
187
188
  $[16] = videoElement;
188
- $[17] = t16;
189
- } else t16 = $[17];
190
- useEffect(t15, t16);
191
- let t17;
189
+ $[17] = t17;
190
+ } else t17 = $[17];
191
+ useEffect(t16, t17);
192
+ let t18;
192
193
  if ($[18] !== sendHostSignal) {
193
- t17 = (viewerId, payload) => sendHostSignal({
194
+ t18 = (viewerId, payload) => sendHostSignal({
194
195
  viewerId,
195
196
  payload
196
197
  });
197
198
  $[18] = sendHostSignal;
198
- $[19] = t17;
199
- } else t17 = $[19];
200
- const sendSignal = useEffectEvent(t17);
201
- let t18;
199
+ $[19] = t18;
200
+ } else t18 = $[19];
201
+ const sendSignal = useEffectEvent(t18);
202
+ let t19;
202
203
  if ($[20] !== getIceServers) {
203
- t18 = async () => await getIceServers?.() ?? [];
204
+ t19 = async () => await getIceServers?.() ?? [];
204
205
  $[20] = getIceServers;
205
- $[21] = t18;
206
- } else t18 = $[21];
207
- const loadIceServers = useEffectEvent(t18);
208
- let t19;
206
+ $[21] = t19;
207
+ } else t19 = $[21];
208
+ const loadIceServers = useEffectEvent(t19);
209
+ let t20;
209
210
  if ($[22] !== subscribeSignals) {
210
- t19 = (listener) => subscribeSignals(listener);
211
+ t20 = (listener) => subscribeSignals(listener);
211
212
  $[22] = subscribeSignals;
212
- $[23] = t19;
213
- } else t19 = $[23];
214
- const subscribe = useEffectEvent(t19);
215
- let t20;
213
+ $[23] = t20;
214
+ } else t20 = $[23];
215
+ const subscribe = useEffectEvent(t20);
216
+ let t21;
216
217
  if ($[24] !== protocol) {
217
- t20 = (value) => protocol.parseStatus(value);
218
+ t21 = (value) => protocol.parseStatus(value);
218
219
  $[24] = protocol;
219
- $[25] = t20;
220
- } else t20 = $[25];
221
- const parseStatus = useEffectEvent(t20);
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 t21;
225
+ let t22;
225
226
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
226
- t21 = (event_0) => {
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] = t21;
240
- } else t21 = $[26];
241
- const handleWheel = useEffectEvent(t21);
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
- t23 = function cancelPointerState() {
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] = t23;
265
- } else t23 = $[28];
266
- const cancelPointerState = t23;
267
- let t24;
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
- t24 = function cancelForwardedKeys() {
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] = t24;
283
- } else t24 = $[29];
284
- const cancelForwardedKeys = t24;
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
- t26 = () => {
294
+ t27 = () => {
294
295
  window.addEventListener("blur", releaseKeysOnWindowBlur);
295
296
  return () => window.removeEventListener("blur", releaseKeysOnWindowBlur);
296
297
  };
297
298
  $[31] = releaseKeysOnWindowBlur;
298
- $[32] = t26;
299
- } else t26 = $[32];
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
- t28 = (element_2) => {
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] = t28;
318
- } else t28 = $[34];
319
- const attachInput = t28;
320
- let t29;
318
+ $[34] = t29;
319
+ } else t29 = $[34];
320
+ const attachInput = t29;
321
+ let t30;
321
322
  if ($[35] !== handleWheel || $[36] !== inputElement) {
322
- t29 = () => {
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] = t29;
330
- } else t29 = $[37];
331
- let t30;
330
+ $[37] = t30;
331
+ } else t30 = $[37];
332
+ let t31;
332
333
  if ($[38] !== inputElement) {
333
- t30 = [inputElement];
334
+ t31 = [inputElement];
334
335
  $[38] = inputElement;
335
- $[39] = t30;
336
- } else t30 = $[39];
337
- useEffect(t29, t30);
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 t31;
342
+ let t32;
342
343
  if ($[40] !== captureTabId || $[41] !== dataChannelLabel || $[42] !== loadIceServers || $[43] !== parseStatus || $[44] !== sendSignal || $[45] !== subscribe) {
343
- t31 = () => {
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 (t32) {
429
- const error_1 = t32;
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] = t31;
549
- } else t31 = $[46];
550
- let t32;
549
+ $[46] = t32;
550
+ } else t32 = $[46];
551
+ let t33;
551
552
  if ($[47] !== captureTabId || $[48] !== dataChannelLabel) {
552
- t32 = [
553
+ t33 = [
553
554
  dataChannelLabel,
554
555
  captureTabId,
555
556
  showTrack
556
557
  ];
557
558
  $[47] = captureTabId;
558
559
  $[48] = dataChannelLabel;
559
- $[49] = t32;
560
- } else t32 = $[49];
561
- useEffect(t31, t32);
562
- let t33;
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
- t33 = function beginTouch(event_4) {
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] = t33;
590
- } else t33 = $[50];
591
- const beginTouch = t33;
592
- let t34;
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
- t34 = function moveTouch(event_5) {
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] = t34;
625
- } else t34 = $[51];
626
- const moveTouch = t34;
627
- let t35;
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
- t35 = function endTouch(event_6, cancelled) {
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] = t35;
647
- } else t35 = $[52];
648
- const endTouch = t35;
649
- let t36;
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
- t36 = function endMouse(event_7) {
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] = t36;
660
- } else t36 = $[53];
661
- const endMouse = t36;
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 t37;
664
+ let t38;
664
665
  if ($[54] !== streamed || $[55] !== tabs) {
665
- t37 = streamed ? tabs.find((tab_0) => tab_0.tabId === streamed.tabId) : void 0;
666
+ t38 = streamed ? tabs.find((tab_0) => tab_0.tabId === streamed.tabId) : void 0;
666
667
  $[54] = streamed;
667
668
  $[55] = tabs;
668
- $[56] = t37;
669
- } else t37 = $[56];
670
- const streamedTab = t37;
669
+ $[56] = t38;
670
+ } else t38 = $[56];
671
+ const streamedTab = t38;
671
672
  const displayUrl = streamed?.pageUrl ?? streamedTab?.url ?? "";
672
- let t38;
673
+ let t39;
673
674
  if ($[57] !== controlLabel || $[58] !== keyboardOpen || $[59] !== notice) {
674
- t38 = (_placement, statusId) => /* @__PURE__ */ jsxs(Fragment, { children: [
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] = t38;
873
- } else t38 = $[60];
874
- let t39;
875
- if ($[61] !== notice || $[62] !== phase || $[63] !== t38) {
876
- t39 = /* @__PURE__ */ jsx(BrowserLiveView, {
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: t38
882
+ renderMedia: t39
882
883
  });
883
884
  $[61] = notice;
884
885
  $[62] = phase;
885
- $[63] = t38;
886
- $[64] = t39;
887
- } else t39 = $[64];
888
- const view_2 = t39;
889
- let t40;
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
- t40 = tabs.map(_temp3);
893
+ t41 = tabs.map(_temp3);
892
894
  $[65] = tabs;
893
- $[66] = t40;
894
- } else t40 = $[66];
895
- const t41 = captureTabId === void 0 ? null : String(captureTabId);
896
- let t42;
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
- t42 = (id) => onTabChange(Number(id));
900
+ t43 = (id) => onTabChange(Number(id));
899
901
  $[67] = onTabChange;
900
- $[68] = t42;
901
- } else t42 = $[68];
902
- let t43;
902
+ $[68] = t43;
903
+ } else t43 = $[68];
904
+ let t44;
903
905
  if ($[69] !== streamed) {
904
- t43 = (next) => {
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] = t43;
915
- } else t43 = $[70];
916
- const t44 = streamed ? "Open a page…" : "Nothing is streaming";
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
- let t47;
920
+ const t47 = !streamed;
921
+ let t48;
920
922
  if ($[71] !== streamed) {
921
- t47 = () => streamed && sendCommand({
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] = t47;
928
- } else t47 = $[72];
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 ($[74] !== t46 || $[75] !== t47) {
936
- t49 = /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
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: t46,
939
- onClick: t47,
940
- children: t48
940
+ disabled: t47,
941
+ onClick: t48,
942
+ children: t49
941
943
  });
942
- $[74] = t46;
943
- $[75] = t47;
944
- $[76] = t49;
945
- } else t49 = $[76];
946
- const t50 = !streamed;
947
- let t51;
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
- t51 = () => streamed && sendCommand({
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] = t51;
956
- } else t51 = $[78];
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 ($[80] !== t50 || $[81] !== t51) {
964
- t53 = /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
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: t50,
967
- onClick: t51,
968
- children: t52
968
+ disabled: t51,
969
+ onClick: t52,
970
+ children: t53
969
971
  });
970
- $[80] = t50;
971
- $[81] = t51;
972
- $[82] = t53;
973
- } else t53 = $[82];
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 ($[86] !== displayUrl || $[87] !== label || $[88] !== t40 || $[89] !== t41 || $[90] !== t42 || $[91] !== t43 || $[92] !== t44 || $[93] !== t45 || $[94] !== t54 || $[95] !== view_2) {
983
- t55 = /* @__PURE__ */ jsx(BrowserRunPanel, {
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: t40,
986
- selectedTabId: t41,
987
- onSelectTab: t42,
987
+ tabs: t41,
988
+ selectedTabId: t42,
989
+ onSelectTab: t43,
988
990
  url: displayUrl,
989
- onOpenUrl: t43,
991
+ onOpenUrl: t44,
990
992
  urlLabel: "Streamed page URL",
991
- urlPlaceholder: t44,
992
- urlDisabled: t45,
993
- navigation: t54,
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] = t40;
999
- $[89] = t41;
1000
- $[90] = t42;
1001
- $[91] = t43;
1002
- $[92] = t44;
1003
- $[93] = t45;
1004
- $[94] = t54;
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] = t55;
1007
- } else t55 = $[96];
1008
- return t55;
1008
+ $[96] = t56;
1009
+ } else t56 = $[96];
1010
+ return t56;
1009
1011
  }
1010
1012
  function _temp3(tab_1) {
1011
1013
  return {