@mcp-b/react-components 0.63.0 → 0.64.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/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { Z as
|
|
2
|
+
import { A as GlobeIcon, Z as PlusIcon, gt as XIcon, it as SpinnerIcon } from "../../icons-nLTnB9kd.js";
|
|
3
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
3
5
|
import { Tabs } from "../foundations/Tabs.js";
|
|
6
|
+
import { Favicon } from "../foundations/Favicon.js";
|
|
4
7
|
import { WebPreview, WebPreviewEmpty, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl, WebPreviewViewport } from "../general-purpose/WebPreview.js";
|
|
5
8
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
9
|
+
import { Avatar } from "../foundations/Avatar.js";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
6
11
|
import * as React from "react";
|
|
7
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
13
|
//#region src/components/agents-sdk/BrowserRunPanel.tsx
|
|
@@ -13,154 +18,982 @@ function isInspectablePage(target) {
|
|
|
13
18
|
function tabLabel(tab) {
|
|
14
19
|
return tab.title || tab.url || tab.id;
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
/**
|
|
22
|
+
* A browser tab strip, Chrome-shaped: the selected tab paints the page's own
|
|
23
|
+
* surface with 10px top corners and joins the toolbar beneath it, the rest sit
|
|
24
|
+
* flat on the window bar, and tabs share the width down to a glyph.
|
|
25
|
+
*
|
|
26
|
+
* Chrome on macOS puts this row IN the title bar beside the traffic lights
|
|
27
|
+
* (chrome/browser/ui/views/frame/browser_frame_view_mac.mm: `GetTopInset()`
|
|
28
|
+
* returns 0), so a window host passes it through its own title slot. A panel
|
|
29
|
+
* with no window chrome of its own — an extension side panel, a chat card —
|
|
30
|
+
* gets the same strip drawn by `BrowserRunPanel`.
|
|
31
|
+
*
|
|
32
|
+
* Close buttons share the tabs' CSS grid while remaining outside the tablist's
|
|
33
|
+
* accessibility tree. Tabs keep Base UI's roving focus; Delete closes the
|
|
34
|
+
* focused page when a host provides it, and each tab announces that shortcut.
|
|
35
|
+
*/
|
|
36
|
+
function BrowserTabStrip(t0) {
|
|
37
|
+
const $ = c(29);
|
|
38
|
+
let className;
|
|
39
|
+
let onCloseTab;
|
|
40
|
+
let onNewTab;
|
|
41
|
+
let onSelectTab;
|
|
42
|
+
let panelId;
|
|
43
|
+
let props;
|
|
44
|
+
let t1;
|
|
45
|
+
let tabSearch;
|
|
46
|
+
let tabs;
|
|
47
|
+
if ($[0] !== t0) {
|
|
48
|
+
({tabs, selectedTabId: t1, onSelectTab, onCloseTab, onNewTab, tabSearch, panelId, className, ...props} = t0);
|
|
49
|
+
$[0] = t0;
|
|
50
|
+
$[1] = className;
|
|
51
|
+
$[2] = onCloseTab;
|
|
52
|
+
$[3] = onNewTab;
|
|
53
|
+
$[4] = onSelectTab;
|
|
54
|
+
$[5] = panelId;
|
|
55
|
+
$[6] = props;
|
|
56
|
+
$[7] = t1;
|
|
57
|
+
$[8] = tabSearch;
|
|
58
|
+
$[9] = tabs;
|
|
59
|
+
} else {
|
|
60
|
+
className = $[1];
|
|
61
|
+
onCloseTab = $[2];
|
|
62
|
+
onNewTab = $[3];
|
|
63
|
+
onSelectTab = $[4];
|
|
64
|
+
panelId = $[5];
|
|
65
|
+
props = $[6];
|
|
66
|
+
t1 = $[7];
|
|
67
|
+
tabSearch = $[8];
|
|
68
|
+
tabs = $[9];
|
|
69
|
+
}
|
|
70
|
+
const selectedTabId = t1 === void 0 ? null : t1;
|
|
71
|
+
const strip = React.useRef(null);
|
|
72
|
+
const closedFocus = React.useRef(null);
|
|
73
|
+
let t2;
|
|
74
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
75
|
+
t2 = () => {
|
|
76
|
+
const root = strip.current;
|
|
77
|
+
if (!root) return;
|
|
78
|
+
const revealSelected = function revealSelected() {
|
|
79
|
+
const selected = root?.querySelector("[role=\"tab\"][data-active]");
|
|
80
|
+
if (selected?.getClientRects().length) selected.scrollIntoView({
|
|
81
|
+
block: "nearest",
|
|
82
|
+
inline: "nearest"
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
revealSelected();
|
|
86
|
+
const observer = new ResizeObserver(revealSelected);
|
|
87
|
+
observer.observe(root);
|
|
88
|
+
return () => observer.disconnect();
|
|
89
|
+
};
|
|
90
|
+
$[10] = t2;
|
|
91
|
+
} else t2 = $[10];
|
|
92
|
+
let t3;
|
|
93
|
+
if ($[11] !== selectedTabId || $[12] !== tabs) {
|
|
94
|
+
t3 = [tabs, selectedTabId];
|
|
95
|
+
$[11] = selectedTabId;
|
|
96
|
+
$[12] = tabs;
|
|
97
|
+
$[13] = t3;
|
|
98
|
+
} else t3 = $[13];
|
|
99
|
+
React.useLayoutEffect(t2, t3);
|
|
100
|
+
const closeTab = function closeTab(id, button) {
|
|
101
|
+
if (button === document.activeElement) closedFocus.current = id;
|
|
102
|
+
onCloseTab?.(id);
|
|
103
|
+
};
|
|
104
|
+
let t4;
|
|
105
|
+
if ($[14] !== selectedTabId || $[15] !== tabs) {
|
|
106
|
+
t4 = [tabs, selectedTabId];
|
|
107
|
+
$[14] = selectedTabId;
|
|
108
|
+
$[15] = tabs;
|
|
109
|
+
$[16] = t4;
|
|
110
|
+
} else t4 = $[16];
|
|
111
|
+
React.useLayoutEffect(() => {
|
|
112
|
+
if (closedFocus.current === null || tabs.some((tab) => tab.id === closedFocus.current)) return;
|
|
113
|
+
closedFocus.current = null;
|
|
114
|
+
if (document.activeElement === document.body) (strip.current?.querySelector("[role=\"tab\"][data-active]") ?? strip.current?.querySelector("[role=\"tab\"][tabindex=\"0\"]") ?? strip.current?.querySelector("[role=\"tab\"], .browser-tab-strip__new"))?.focus();
|
|
115
|
+
}, t4);
|
|
116
|
+
let t5;
|
|
117
|
+
if ($[17] !== className) {
|
|
118
|
+
t5 = cx("browser-tab-strip", className);
|
|
119
|
+
$[17] = className;
|
|
120
|
+
$[18] = t5;
|
|
121
|
+
} else t5 = $[18];
|
|
122
|
+
let t6;
|
|
123
|
+
if ($[19] !== onSelectTab || $[20] !== selectedTabId) {
|
|
124
|
+
t6 = (value) => {
|
|
125
|
+
if (typeof value === "string" && value !== selectedTabId) onSelectTab?.(value);
|
|
126
|
+
};
|
|
127
|
+
$[19] = onSelectTab;
|
|
128
|
+
$[20] = selectedTabId;
|
|
129
|
+
$[21] = t6;
|
|
130
|
+
} else t6 = $[21];
|
|
131
|
+
const t7 = `${tabs.length * 16}rem`;
|
|
132
|
+
const t8 = `repeat(${Math.max(1, tabs.length)}, minmax(${onCloseTab ? "var(--browser-tab-close-min, var(--sigvelo-spacing-16))" : "2rem"}, 1fr))`;
|
|
133
|
+
let t9;
|
|
134
|
+
if ($[22] !== t7 || $[23] !== t8) {
|
|
135
|
+
t9 = {
|
|
136
|
+
inlineSize: t7,
|
|
137
|
+
gridTemplateColumns: t8
|
|
138
|
+
};
|
|
139
|
+
$[22] = t7;
|
|
140
|
+
$[23] = t8;
|
|
141
|
+
$[24] = t9;
|
|
142
|
+
} else t9 = $[24];
|
|
143
|
+
let t10;
|
|
144
|
+
if ($[25] !== onNewTab) {
|
|
145
|
+
t10 = onNewTab ? /* @__PURE__ */ jsx(IconButton, {
|
|
146
|
+
className: "browser-tab-strip__new",
|
|
147
|
+
label: "New tab",
|
|
148
|
+
variant: "ghost",
|
|
149
|
+
color: "neutral",
|
|
150
|
+
size: "sm",
|
|
151
|
+
onClick: onNewTab,
|
|
152
|
+
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
153
|
+
}) : null;
|
|
154
|
+
$[25] = onNewTab;
|
|
155
|
+
$[26] = t10;
|
|
156
|
+
} else t10 = $[26];
|
|
157
|
+
let t11;
|
|
158
|
+
if ($[27] !== tabSearch) {
|
|
159
|
+
t11 = tabSearch ? /* @__PURE__ */ jsx("div", {
|
|
160
|
+
className: "browser-tab-strip__trailing",
|
|
161
|
+
children: tabSearch
|
|
162
|
+
}) : null;
|
|
163
|
+
$[27] = tabSearch;
|
|
164
|
+
$[28] = t11;
|
|
165
|
+
} else t11 = $[28];
|
|
166
|
+
return /* @__PURE__ */ jsxs(Tabs.Root, {
|
|
167
|
+
ref: strip,
|
|
168
|
+
"data-recipe": "browser-chrome",
|
|
169
|
+
unstyled: true,
|
|
170
|
+
className: t5,
|
|
171
|
+
value: selectedTabId,
|
|
172
|
+
onValueChange: t6,
|
|
173
|
+
...props,
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ jsxs("div", {
|
|
176
|
+
className: "browser-tab-strip__pages",
|
|
177
|
+
style: t9,
|
|
178
|
+
children: [/* @__PURE__ */ jsx(Tabs.List, {
|
|
179
|
+
className: "browser-tab-strip__tabs",
|
|
180
|
+
"aria-label": "Open browser pages",
|
|
181
|
+
activateOnFocus: true,
|
|
182
|
+
unstyled: true,
|
|
183
|
+
children: tabs.map((tab_0) => /* @__PURE__ */ jsx("div", {
|
|
184
|
+
role: "presentation",
|
|
185
|
+
className: "browser-tab-strip__cell",
|
|
186
|
+
"data-active": tab_0.id === selectedTabId ? "" : void 0,
|
|
187
|
+
children: /* @__PURE__ */ jsxs(Tabs.Tab, {
|
|
188
|
+
value: tab_0.id,
|
|
189
|
+
className: "browser-tab-strip__tab",
|
|
190
|
+
unstyled: true,
|
|
191
|
+
"aria-controls": tab_0.id === selectedTabId ? panelId : void 0,
|
|
192
|
+
"aria-keyshortcuts": onCloseTab ? "Delete" : void 0,
|
|
193
|
+
onKeyDown: (event) => {
|
|
194
|
+
if (event.key === "Delete" && onCloseTab) {
|
|
195
|
+
event.preventDefault();
|
|
196
|
+
closeTab(tab_0.id, event.currentTarget);
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
200
|
+
className: "browser-tab-strip__favicon",
|
|
201
|
+
"aria-hidden": "true",
|
|
202
|
+
children: /* @__PURE__ */ jsx(Favicon, {
|
|
203
|
+
href: tab_0.url,
|
|
204
|
+
fallback: /* @__PURE__ */ jsx(GlobeIcon, {})
|
|
205
|
+
})
|
|
206
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
207
|
+
className: "browser-tab-strip__title sigvelo-truncate",
|
|
208
|
+
children: tabLabel(tab_0)
|
|
209
|
+
})]
|
|
210
|
+
})
|
|
211
|
+
}, tab_0.id))
|
|
212
|
+
}), onCloseTab ? /* @__PURE__ */ jsx("div", {
|
|
213
|
+
className: "browser-tab-strip__closures",
|
|
214
|
+
children: tabs.map((tab_1) => /* @__PURE__ */ jsx(IconButton, {
|
|
215
|
+
className: "browser-tab-strip__close",
|
|
216
|
+
label: `Close ${tabLabel(tab_1)}`,
|
|
217
|
+
variant: "ghost",
|
|
218
|
+
color: "neutral",
|
|
219
|
+
size: "xs",
|
|
220
|
+
tabIndex: -1,
|
|
221
|
+
onClick: (event_0) => closeTab(tab_1.id, event_0.currentTarget),
|
|
222
|
+
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
223
|
+
}, tab_1.id))
|
|
224
|
+
}) : null]
|
|
225
|
+
}),
|
|
226
|
+
t10,
|
|
227
|
+
t11
|
|
228
|
+
]
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/** Chrome-shaped identity and profile switching over the shared Menu and Avatar. */
|
|
232
|
+
function BrowserProfileMenu(t0) {
|
|
233
|
+
const $ = c(48);
|
|
234
|
+
const { profiles, profileId, onSelectProfile } = t0;
|
|
235
|
+
const pending = React.useRef(null);
|
|
236
|
+
const switching = React.useRef(false);
|
|
237
|
+
let t1;
|
|
238
|
+
if ($[0] !== profileId || $[1] !== profiles) {
|
|
239
|
+
t1 = profiles.find((profile) => profile.id === profileId) ?? profiles[0];
|
|
240
|
+
$[0] = profileId;
|
|
241
|
+
$[1] = profiles;
|
|
242
|
+
$[2] = t1;
|
|
243
|
+
} else t1 = $[2];
|
|
244
|
+
const selected = t1;
|
|
245
|
+
if (!selected) return null;
|
|
246
|
+
if (profiles.length === 1) {
|
|
247
|
+
const t2 = `Browser profile: ${selected.name}`;
|
|
248
|
+
let t3;
|
|
249
|
+
if ($[3] !== selected.name[0]) {
|
|
250
|
+
t3 = selected.name[0]?.toUpperCase();
|
|
251
|
+
$[3] = selected.name[0];
|
|
252
|
+
$[4] = t3;
|
|
253
|
+
} else t3 = $[4];
|
|
254
|
+
let t4;
|
|
255
|
+
if ($[5] !== t3) {
|
|
256
|
+
t4 = /* @__PURE__ */ jsx(Avatar.Fallback, { children: t3 });
|
|
257
|
+
$[5] = t3;
|
|
258
|
+
$[6] = t4;
|
|
259
|
+
} else t4 = $[6];
|
|
260
|
+
let t5;
|
|
261
|
+
if ($[7] !== t2 || $[8] !== t4) {
|
|
262
|
+
t5 = /* @__PURE__ */ jsx(Avatar.Root, {
|
|
263
|
+
className: "browser-profile-menu__trigger",
|
|
264
|
+
size: "sm",
|
|
265
|
+
role: "img",
|
|
266
|
+
"aria-label": t2,
|
|
267
|
+
children: t4
|
|
268
|
+
});
|
|
269
|
+
$[7] = t2;
|
|
270
|
+
$[8] = t4;
|
|
271
|
+
$[9] = t5;
|
|
272
|
+
} else t5 = $[9];
|
|
273
|
+
return t5;
|
|
274
|
+
}
|
|
275
|
+
const t2 = Menu;
|
|
276
|
+
let t3;
|
|
277
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
278
|
+
t3 = (open) => {
|
|
279
|
+
if (open) switching.current = false;
|
|
280
|
+
};
|
|
281
|
+
$[10] = t3;
|
|
282
|
+
} else t3 = $[10];
|
|
283
|
+
const t4 = (open_0) => {
|
|
284
|
+
if (!open_0 && pending.current !== null) {
|
|
285
|
+
const id = pending.current;
|
|
286
|
+
pending.current = null;
|
|
287
|
+
onSelectProfile(id);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const t5 = `Browser profile: ${selected.name}`;
|
|
291
|
+
let t6;
|
|
292
|
+
if ($[11] !== selected.name[0]) {
|
|
293
|
+
t6 = selected.name[0]?.toUpperCase();
|
|
294
|
+
$[11] = selected.name[0];
|
|
295
|
+
$[12] = t6;
|
|
296
|
+
} else t6 = $[12];
|
|
297
|
+
let t7;
|
|
298
|
+
if ($[13] !== t6) {
|
|
299
|
+
t7 = /* @__PURE__ */ jsx(Avatar.Root, {
|
|
300
|
+
className: "browser-profile-menu__trigger-avatar",
|
|
301
|
+
size: "sm",
|
|
302
|
+
"aria-hidden": "true",
|
|
303
|
+
children: /* @__PURE__ */ jsx(Avatar.Fallback, { children: t6 })
|
|
304
|
+
});
|
|
305
|
+
$[13] = t6;
|
|
306
|
+
$[14] = t7;
|
|
307
|
+
} else t7 = $[14];
|
|
308
|
+
let t8;
|
|
309
|
+
if ($[15] !== t5 || $[16] !== t7) {
|
|
310
|
+
t8 = /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
311
|
+
"data-recipe": "browser-chrome",
|
|
312
|
+
render: /* @__PURE__ */ jsx(IconButton, {
|
|
313
|
+
className: "browser-profile-menu__trigger",
|
|
314
|
+
label: t5,
|
|
315
|
+
variant: "ghost",
|
|
316
|
+
color: "neutral",
|
|
317
|
+
size: "sm",
|
|
318
|
+
children: t7
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
$[15] = t5;
|
|
322
|
+
$[16] = t7;
|
|
323
|
+
$[17] = t8;
|
|
324
|
+
} else t8 = $[17];
|
|
325
|
+
const t9 = Menu;
|
|
326
|
+
const t10 = Menu;
|
|
327
|
+
const t11 = "end";
|
|
328
|
+
const t12 = 8;
|
|
329
|
+
const t13 = Menu;
|
|
330
|
+
const t14 = "browser-profile-menu__popup";
|
|
331
|
+
let t15;
|
|
332
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
333
|
+
t15 = () => !switching.current;
|
|
334
|
+
$[18] = t15;
|
|
335
|
+
} else t15 = $[18];
|
|
336
|
+
let t16;
|
|
337
|
+
if ($[19] !== selected.name[0]) {
|
|
338
|
+
t16 = selected.name[0]?.toUpperCase();
|
|
339
|
+
$[19] = selected.name[0];
|
|
340
|
+
$[20] = t16;
|
|
341
|
+
} else t16 = $[20];
|
|
342
|
+
let t17;
|
|
343
|
+
if ($[21] !== t16) {
|
|
344
|
+
t17 = /* @__PURE__ */ jsx(Avatar.Root, {
|
|
345
|
+
className: "browser-profile-menu__identity-avatar",
|
|
346
|
+
size: "xl",
|
|
347
|
+
"aria-hidden": "true",
|
|
348
|
+
children: /* @__PURE__ */ jsx(Avatar.Fallback, { children: t16 })
|
|
349
|
+
});
|
|
350
|
+
$[21] = t16;
|
|
351
|
+
$[22] = t17;
|
|
352
|
+
} else t17 = $[22];
|
|
353
|
+
let t18;
|
|
354
|
+
if ($[23] !== selected.name) {
|
|
355
|
+
t18 = /* @__PURE__ */ jsx("p", {
|
|
356
|
+
className: "browser-profile-menu__name",
|
|
357
|
+
children: selected.name
|
|
358
|
+
});
|
|
359
|
+
$[23] = selected.name;
|
|
360
|
+
$[24] = t18;
|
|
361
|
+
} else t18 = $[24];
|
|
362
|
+
let t19;
|
|
363
|
+
if ($[25] !== selected.description) {
|
|
364
|
+
t19 = selected.description ? /* @__PURE__ */ jsx("p", { children: selected.description }) : null;
|
|
365
|
+
$[25] = selected.description;
|
|
366
|
+
$[26] = t19;
|
|
367
|
+
} else t19 = $[26];
|
|
368
|
+
let t20;
|
|
369
|
+
if ($[27] !== t17 || $[28] !== t18 || $[29] !== t19) {
|
|
370
|
+
t20 = /* @__PURE__ */ jsxs("div", {
|
|
371
|
+
className: "browser-profile-menu__identity",
|
|
372
|
+
children: [
|
|
373
|
+
t17,
|
|
374
|
+
t18,
|
|
375
|
+
t19
|
|
376
|
+
]
|
|
377
|
+
});
|
|
378
|
+
$[27] = t17;
|
|
379
|
+
$[28] = t18;
|
|
380
|
+
$[29] = t19;
|
|
381
|
+
$[30] = t20;
|
|
382
|
+
} else t20 = $[30];
|
|
383
|
+
const t21 = profiles.some((profile_2) => profile_2.id !== selected.id) ? /* @__PURE__ */ jsxs(Menu.Group, {
|
|
384
|
+
className: "browser-profile-menu__profiles",
|
|
385
|
+
children: [/* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
386
|
+
className: "browser-profile-menu__heading",
|
|
387
|
+
children: "Other profiles"
|
|
388
|
+
}), profiles.filter((profile_0) => profile_0.id !== selected.id).map((profile_1) => /* @__PURE__ */ jsxs(Menu.Item, {
|
|
389
|
+
className: "browser-profile-menu__profile",
|
|
390
|
+
onClick: () => {
|
|
391
|
+
switching.current = true;
|
|
392
|
+
pending.current = profile_1.id;
|
|
393
|
+
},
|
|
394
|
+
children: [/* @__PURE__ */ jsx(Avatar.Root, {
|
|
395
|
+
className: "browser-profile-menu__row-avatar",
|
|
396
|
+
size: "sm",
|
|
397
|
+
"aria-hidden": "true",
|
|
398
|
+
children: /* @__PURE__ */ jsx(Avatar.Fallback, { children: profile_1.name[0]?.toUpperCase() })
|
|
399
|
+
}), /* @__PURE__ */ jsx("span", { children: profile_1.name })]
|
|
400
|
+
}, profile_1.id))]
|
|
401
|
+
}) : null;
|
|
402
|
+
let t22;
|
|
403
|
+
if ($[31] !== t13.Popup || $[32] !== t15 || $[33] !== t20 || $[34] !== t21) {
|
|
404
|
+
t22 = /* @__PURE__ */ jsxs(t13.Popup, {
|
|
405
|
+
className: t14,
|
|
406
|
+
finalFocus: t15,
|
|
407
|
+
children: [t20, t21]
|
|
408
|
+
});
|
|
409
|
+
$[31] = t13.Popup;
|
|
410
|
+
$[32] = t15;
|
|
411
|
+
$[33] = t20;
|
|
412
|
+
$[34] = t21;
|
|
413
|
+
$[35] = t22;
|
|
414
|
+
} else t22 = $[35];
|
|
415
|
+
let t23;
|
|
416
|
+
if ($[36] !== t10.Positioner || $[37] !== t22) {
|
|
417
|
+
t23 = /* @__PURE__ */ jsx(t10.Positioner, {
|
|
418
|
+
align: t11,
|
|
419
|
+
sideOffset: t12,
|
|
420
|
+
children: t22
|
|
421
|
+
});
|
|
422
|
+
$[36] = t10.Positioner;
|
|
423
|
+
$[37] = t22;
|
|
424
|
+
$[38] = t23;
|
|
425
|
+
} else t23 = $[38];
|
|
426
|
+
let t24;
|
|
427
|
+
if ($[39] !== t23 || $[40] !== t9.Portal) {
|
|
428
|
+
t24 = /* @__PURE__ */ jsx(t9.Portal, { children: t23 });
|
|
429
|
+
$[39] = t23;
|
|
430
|
+
$[40] = t9.Portal;
|
|
431
|
+
$[41] = t24;
|
|
432
|
+
} else t24 = $[41];
|
|
433
|
+
let t25;
|
|
434
|
+
if ($[42] !== t2.Root || $[43] !== t24 || $[44] !== t3 || $[45] !== t4 || $[46] !== t8) {
|
|
435
|
+
t25 = /* @__PURE__ */ jsxs(t2.Root, {
|
|
436
|
+
onOpenChange: t3,
|
|
437
|
+
onOpenChangeComplete: t4,
|
|
438
|
+
children: [t8, t24]
|
|
439
|
+
});
|
|
440
|
+
$[42] = t2.Root;
|
|
441
|
+
$[43] = t24;
|
|
442
|
+
$[44] = t3;
|
|
443
|
+
$[45] = t4;
|
|
444
|
+
$[46] = t8;
|
|
445
|
+
$[47] = t25;
|
|
446
|
+
} else t25 = $[47];
|
|
447
|
+
return t25;
|
|
18
448
|
}
|
|
19
449
|
function pickTarget(targets, targetId) {
|
|
20
450
|
return (targetId ? targets.find((target) => target.targetId === targetId) : void 0) ?? targets.find(isInspectablePage) ?? targets[0];
|
|
21
451
|
}
|
|
22
|
-
function BrowserRunPanelState(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
452
|
+
function BrowserRunPanelState(t0) {
|
|
453
|
+
const $ = c(4);
|
|
454
|
+
const { children, role, tone: t1 } = t0;
|
|
455
|
+
const tone = t1 === void 0 ? "neutral" : t1;
|
|
456
|
+
const t2 = role ?? (tone === "danger" ? "alert" : void 0);
|
|
457
|
+
let t3;
|
|
458
|
+
if ($[0] !== children || $[1] !== t2 || $[2] !== tone) {
|
|
459
|
+
t3 = /* @__PURE__ */ jsx(WebPreviewEmpty, {
|
|
460
|
+
className: "browser-run-panel__state",
|
|
461
|
+
"data-tone": tone,
|
|
462
|
+
role: t2,
|
|
463
|
+
children
|
|
464
|
+
});
|
|
465
|
+
$[0] = children;
|
|
466
|
+
$[1] = t2;
|
|
467
|
+
$[2] = tone;
|
|
468
|
+
$[3] = t3;
|
|
469
|
+
} else t3 = $[3];
|
|
470
|
+
return t3;
|
|
29
471
|
}
|
|
30
472
|
/** The one rendering of the panel chrome, whichever mode filled its props in. */
|
|
31
|
-
function BrowserRunPanelFrame(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
473
|
+
function BrowserRunPanelFrame(t0) {
|
|
474
|
+
const $ = c(103);
|
|
475
|
+
let body;
|
|
476
|
+
let bodyBusy;
|
|
477
|
+
let className;
|
|
478
|
+
let error;
|
|
479
|
+
let navigation;
|
|
480
|
+
let navigationEnd;
|
|
481
|
+
let onCloseTab;
|
|
482
|
+
let onNewTab;
|
|
483
|
+
let onOpenUrl;
|
|
484
|
+
let onSelectTab;
|
|
485
|
+
let props;
|
|
486
|
+
let ref;
|
|
487
|
+
let selectedTabId;
|
|
488
|
+
let t1;
|
|
489
|
+
let t2;
|
|
490
|
+
let tabs;
|
|
491
|
+
let url;
|
|
492
|
+
let urlDisabled;
|
|
493
|
+
let urlPlaceholder;
|
|
494
|
+
let urlReadOnly;
|
|
495
|
+
if ($[0] !== t0) {
|
|
496
|
+
({body, bodyBusy, className, error, label: t1, navigation, navigationEnd, onOpenUrl, onSelectTab, onCloseTab, onNewTab, ref, selectedTabId, tabs, url, urlDisabled, urlLabel: t2, urlPlaceholder, urlReadOnly, ...props} = t0);
|
|
497
|
+
$[0] = t0;
|
|
498
|
+
$[1] = body;
|
|
499
|
+
$[2] = bodyBusy;
|
|
500
|
+
$[3] = className;
|
|
501
|
+
$[4] = error;
|
|
502
|
+
$[5] = navigation;
|
|
503
|
+
$[6] = navigationEnd;
|
|
504
|
+
$[7] = onCloseTab;
|
|
505
|
+
$[8] = onNewTab;
|
|
506
|
+
$[9] = onOpenUrl;
|
|
507
|
+
$[10] = onSelectTab;
|
|
508
|
+
$[11] = props;
|
|
509
|
+
$[12] = ref;
|
|
510
|
+
$[13] = selectedTabId;
|
|
511
|
+
$[14] = t1;
|
|
512
|
+
$[15] = t2;
|
|
513
|
+
$[16] = tabs;
|
|
514
|
+
$[17] = url;
|
|
515
|
+
$[18] = urlDisabled;
|
|
516
|
+
$[19] = urlPlaceholder;
|
|
517
|
+
$[20] = urlReadOnly;
|
|
518
|
+
} else {
|
|
519
|
+
body = $[1];
|
|
520
|
+
bodyBusy = $[2];
|
|
521
|
+
className = $[3];
|
|
522
|
+
error = $[4];
|
|
523
|
+
navigation = $[5];
|
|
524
|
+
navigationEnd = $[6];
|
|
525
|
+
onCloseTab = $[7];
|
|
526
|
+
onNewTab = $[8];
|
|
527
|
+
onOpenUrl = $[9];
|
|
528
|
+
onSelectTab = $[10];
|
|
529
|
+
props = $[11];
|
|
530
|
+
ref = $[12];
|
|
531
|
+
selectedTabId = $[13];
|
|
532
|
+
t1 = $[14];
|
|
533
|
+
t2 = $[15];
|
|
534
|
+
tabs = $[16];
|
|
535
|
+
url = $[17];
|
|
536
|
+
urlDisabled = $[18];
|
|
537
|
+
urlPlaceholder = $[19];
|
|
538
|
+
urlReadOnly = $[20];
|
|
539
|
+
}
|
|
540
|
+
const label = t1 === void 0 ? "Browser" : t1;
|
|
541
|
+
const urlLabel = t2 === void 0 ? "Browser page URL" : t2;
|
|
542
|
+
const panelId = React.useId();
|
|
543
|
+
const strip = tabs.length > 1 || onNewTab || onCloseTab;
|
|
544
|
+
let T0;
|
|
545
|
+
let T1;
|
|
546
|
+
let t10;
|
|
547
|
+
let t11;
|
|
548
|
+
let t12;
|
|
549
|
+
let t13;
|
|
550
|
+
let t14;
|
|
551
|
+
let t15;
|
|
552
|
+
let t16;
|
|
553
|
+
let t17;
|
|
554
|
+
let t3;
|
|
555
|
+
let t4;
|
|
556
|
+
let t5;
|
|
557
|
+
let t6;
|
|
558
|
+
let t7;
|
|
559
|
+
let t8;
|
|
560
|
+
let t9;
|
|
561
|
+
if ($[21] !== bodyBusy || $[22] !== className || $[23] !== error || $[24] !== label || $[25] !== navigation || $[26] !== navigationEnd || $[27] !== onCloseTab || $[28] !== onNewTab || $[29] !== onOpenUrl || $[30] !== onSelectTab || $[31] !== panelId || $[32] !== props || $[33] !== ref || $[34] !== selectedTabId || $[35] !== strip || $[36] !== tabs || $[37] !== url || $[38] !== urlDisabled || $[39] !== urlLabel || $[40] !== urlPlaceholder || $[41] !== urlReadOnly) {
|
|
562
|
+
const selectedTab = strip ? tabs.find((tab) => tab.id === selectedTabId) : void 0;
|
|
563
|
+
T1 = WebPreview;
|
|
564
|
+
if ($[59] !== className) {
|
|
565
|
+
t6 = cx("browser-run-panel", className);
|
|
566
|
+
$[59] = className;
|
|
567
|
+
$[60] = t6;
|
|
568
|
+
} else t6 = $[60];
|
|
569
|
+
t7 = "plain";
|
|
570
|
+
t8 = ref;
|
|
571
|
+
t9 = url;
|
|
572
|
+
if ($[61] !== onOpenUrl) {
|
|
573
|
+
t10 = onOpenUrl ? { onUrlChange: onOpenUrl } : {};
|
|
574
|
+
$[61] = onOpenUrl;
|
|
575
|
+
$[62] = t10;
|
|
576
|
+
} else t10 = $[62];
|
|
577
|
+
t11 = "region";
|
|
578
|
+
t12 = typeof label === "string" ? label : "Browser";
|
|
579
|
+
t13 = props;
|
|
580
|
+
t14 = "fill-host";
|
|
581
|
+
if ($[63] !== onCloseTab || $[64] !== onNewTab || $[65] !== onSelectTab || $[66] !== panelId || $[67] !== selectedTabId || $[68] !== strip || $[69] !== tabs) {
|
|
582
|
+
t15 = strip ? /* @__PURE__ */ jsx(BrowserTabStrip, {
|
|
583
|
+
tabs,
|
|
584
|
+
panelId,
|
|
585
|
+
selectedTabId,
|
|
586
|
+
onSelectTab,
|
|
587
|
+
onCloseTab,
|
|
588
|
+
onNewTab,
|
|
589
|
+
className: "browser-run-panel__strip"
|
|
590
|
+
}) : null;
|
|
591
|
+
$[63] = onCloseTab;
|
|
592
|
+
$[64] = onNewTab;
|
|
593
|
+
$[65] = onSelectTab;
|
|
594
|
+
$[66] = panelId;
|
|
595
|
+
$[67] = selectedTabId;
|
|
596
|
+
$[68] = strip;
|
|
597
|
+
$[69] = tabs;
|
|
598
|
+
$[70] = t15;
|
|
599
|
+
} else t15 = $[70];
|
|
600
|
+
let t18;
|
|
601
|
+
if ($[71] !== urlDisabled || $[72] !== urlLabel || $[73] !== urlPlaceholder || $[74] !== urlReadOnly) {
|
|
602
|
+
t18 = /* @__PURE__ */ jsx(WebPreviewUrl, {
|
|
603
|
+
"aria-label": urlLabel,
|
|
604
|
+
placeholder: urlPlaceholder,
|
|
605
|
+
readOnly: urlReadOnly,
|
|
606
|
+
disabled: urlDisabled
|
|
607
|
+
});
|
|
608
|
+
$[71] = urlDisabled;
|
|
609
|
+
$[72] = urlLabel;
|
|
610
|
+
$[73] = urlPlaceholder;
|
|
611
|
+
$[74] = urlReadOnly;
|
|
612
|
+
$[75] = t18;
|
|
613
|
+
} else t18 = $[75];
|
|
614
|
+
if ($[76] !== navigation || $[77] !== navigationEnd || $[78] !== t18) {
|
|
615
|
+
t16 = /* @__PURE__ */ jsxs(WebPreviewNavigation, {
|
|
70
616
|
className: "browser-run-panel__address-bar",
|
|
71
617
|
children: [
|
|
72
618
|
navigation,
|
|
73
|
-
|
|
74
|
-
"aria-label": urlLabel,
|
|
75
|
-
placeholder: urlPlaceholder,
|
|
76
|
-
readOnly: urlReadOnly,
|
|
77
|
-
disabled: urlDisabled
|
|
78
|
-
}),
|
|
619
|
+
t18,
|
|
79
620
|
navigationEnd
|
|
80
621
|
]
|
|
81
|
-
})
|
|
82
|
-
|
|
622
|
+
});
|
|
623
|
+
$[76] = navigation;
|
|
624
|
+
$[77] = navigationEnd;
|
|
625
|
+
$[78] = t18;
|
|
626
|
+
$[79] = t16;
|
|
627
|
+
} else t16 = $[79];
|
|
628
|
+
if ($[80] !== error) {
|
|
629
|
+
t17 = error ? /* @__PURE__ */ jsx(BrowserRunPanelState, {
|
|
83
630
|
tone: "danger",
|
|
84
631
|
children: error
|
|
85
|
-
}) : null
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
632
|
+
}) : null;
|
|
633
|
+
$[80] = error;
|
|
634
|
+
$[81] = t17;
|
|
635
|
+
} else t17 = $[81];
|
|
636
|
+
T0 = WebPreviewViewport;
|
|
637
|
+
t3 = "browser-run-panel__body";
|
|
638
|
+
t4 = bodyBusy || void 0;
|
|
639
|
+
t5 = selectedTab ? {
|
|
640
|
+
id: panelId,
|
|
641
|
+
role: "tabpanel",
|
|
642
|
+
"aria-label": tabLabel(selectedTab),
|
|
643
|
+
tabIndex: 0
|
|
644
|
+
} : {};
|
|
645
|
+
$[21] = bodyBusy;
|
|
646
|
+
$[22] = className;
|
|
647
|
+
$[23] = error;
|
|
648
|
+
$[24] = label;
|
|
649
|
+
$[25] = navigation;
|
|
650
|
+
$[26] = navigationEnd;
|
|
651
|
+
$[27] = onCloseTab;
|
|
652
|
+
$[28] = onNewTab;
|
|
653
|
+
$[29] = onOpenUrl;
|
|
654
|
+
$[30] = onSelectTab;
|
|
655
|
+
$[31] = panelId;
|
|
656
|
+
$[32] = props;
|
|
657
|
+
$[33] = ref;
|
|
658
|
+
$[34] = selectedTabId;
|
|
659
|
+
$[35] = strip;
|
|
660
|
+
$[36] = tabs;
|
|
661
|
+
$[37] = url;
|
|
662
|
+
$[38] = urlDisabled;
|
|
663
|
+
$[39] = urlLabel;
|
|
664
|
+
$[40] = urlPlaceholder;
|
|
665
|
+
$[41] = urlReadOnly;
|
|
666
|
+
$[42] = T0;
|
|
667
|
+
$[43] = T1;
|
|
668
|
+
$[44] = t10;
|
|
669
|
+
$[45] = t11;
|
|
670
|
+
$[46] = t12;
|
|
671
|
+
$[47] = t13;
|
|
672
|
+
$[48] = t14;
|
|
673
|
+
$[49] = t15;
|
|
674
|
+
$[50] = t16;
|
|
675
|
+
$[51] = t17;
|
|
676
|
+
$[52] = t3;
|
|
677
|
+
$[53] = t4;
|
|
678
|
+
$[54] = t5;
|
|
679
|
+
$[55] = t6;
|
|
680
|
+
$[56] = t7;
|
|
681
|
+
$[57] = t8;
|
|
682
|
+
$[58] = t9;
|
|
683
|
+
} else {
|
|
684
|
+
T0 = $[42];
|
|
685
|
+
T1 = $[43];
|
|
686
|
+
t10 = $[44];
|
|
687
|
+
t11 = $[45];
|
|
688
|
+
t12 = $[46];
|
|
689
|
+
t13 = $[47];
|
|
690
|
+
t14 = $[48];
|
|
691
|
+
t15 = $[49];
|
|
692
|
+
t16 = $[50];
|
|
693
|
+
t17 = $[51];
|
|
694
|
+
t3 = $[52];
|
|
695
|
+
t4 = $[53];
|
|
696
|
+
t5 = $[54];
|
|
697
|
+
t6 = $[55];
|
|
698
|
+
t7 = $[56];
|
|
699
|
+
t8 = $[57];
|
|
700
|
+
t9 = $[58];
|
|
701
|
+
}
|
|
702
|
+
let t18;
|
|
703
|
+
if ($[82] !== T0 || $[83] !== body || $[84] !== t3 || $[85] !== t4 || $[86] !== t5) {
|
|
704
|
+
t18 = /* @__PURE__ */ jsx(T0, {
|
|
705
|
+
className: t3,
|
|
706
|
+
"aria-busy": t4,
|
|
707
|
+
...t5,
|
|
708
|
+
children: body
|
|
709
|
+
});
|
|
710
|
+
$[82] = T0;
|
|
711
|
+
$[83] = body;
|
|
712
|
+
$[84] = t3;
|
|
713
|
+
$[85] = t4;
|
|
714
|
+
$[86] = t5;
|
|
715
|
+
$[87] = t18;
|
|
716
|
+
} else t18 = $[87];
|
|
717
|
+
let t19;
|
|
718
|
+
if ($[88] !== T1 || $[89] !== t10 || $[90] !== t11 || $[91] !== t12 || $[92] !== t13 || $[93] !== t14 || $[94] !== t15 || $[95] !== t16 || $[96] !== t17 || $[97] !== t18 || $[98] !== t6 || $[99] !== t7 || $[100] !== t8 || $[101] !== t9) {
|
|
719
|
+
t19 = /* @__PURE__ */ jsxs(T1, {
|
|
720
|
+
className: t6,
|
|
721
|
+
surface: t7,
|
|
722
|
+
ref: t8,
|
|
723
|
+
url: t9,
|
|
724
|
+
...t10,
|
|
725
|
+
role: t11,
|
|
726
|
+
"aria-label": t12,
|
|
727
|
+
...t13,
|
|
728
|
+
"data-recipe": t14,
|
|
729
|
+
children: [
|
|
730
|
+
t15,
|
|
731
|
+
t16,
|
|
732
|
+
t17,
|
|
733
|
+
t18
|
|
734
|
+
]
|
|
735
|
+
});
|
|
736
|
+
$[88] = T1;
|
|
737
|
+
$[89] = t10;
|
|
738
|
+
$[90] = t11;
|
|
739
|
+
$[91] = t12;
|
|
740
|
+
$[92] = t13;
|
|
741
|
+
$[93] = t14;
|
|
742
|
+
$[94] = t15;
|
|
743
|
+
$[95] = t16;
|
|
744
|
+
$[96] = t17;
|
|
745
|
+
$[97] = t18;
|
|
746
|
+
$[98] = t6;
|
|
747
|
+
$[99] = t7;
|
|
748
|
+
$[100] = t8;
|
|
749
|
+
$[101] = t9;
|
|
750
|
+
$[102] = t19;
|
|
751
|
+
} else t19 = $[102];
|
|
752
|
+
return t19;
|
|
97
753
|
}
|
|
98
|
-
function HostedBrowserRunPanel(
|
|
754
|
+
function HostedBrowserRunPanel(t0) {
|
|
755
|
+
const $ = c(41);
|
|
756
|
+
let error;
|
|
757
|
+
let fallback;
|
|
758
|
+
let label;
|
|
759
|
+
let liveView;
|
|
760
|
+
let loading;
|
|
761
|
+
let onCloseSession;
|
|
762
|
+
let onRefresh;
|
|
763
|
+
let props;
|
|
764
|
+
let t1;
|
|
765
|
+
if ($[0] !== t0) {
|
|
766
|
+
({liveView, onRefresh, onCloseSession, loading, error, label, empty: t1, fallback, ...props} = t0);
|
|
767
|
+
$[0] = t0;
|
|
768
|
+
$[1] = error;
|
|
769
|
+
$[2] = fallback;
|
|
770
|
+
$[3] = label;
|
|
771
|
+
$[4] = liveView;
|
|
772
|
+
$[5] = loading;
|
|
773
|
+
$[6] = onCloseSession;
|
|
774
|
+
$[7] = onRefresh;
|
|
775
|
+
$[8] = props;
|
|
776
|
+
$[9] = t1;
|
|
777
|
+
} else {
|
|
778
|
+
error = $[1];
|
|
779
|
+
fallback = $[2];
|
|
780
|
+
label = $[3];
|
|
781
|
+
liveView = $[4];
|
|
782
|
+
loading = $[5];
|
|
783
|
+
onCloseSession = $[6];
|
|
784
|
+
onRefresh = $[7];
|
|
785
|
+
props = $[8];
|
|
786
|
+
t1 = $[9];
|
|
787
|
+
}
|
|
788
|
+
const empty = t1 === void 0 ? "No live browser session" : t1;
|
|
99
789
|
const [requestedTargetId, setRequestedTargetId] = React.useState();
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
790
|
+
let t2;
|
|
791
|
+
if ($[10] !== liveView?.targets) {
|
|
792
|
+
t2 = liveView?.targets ?? [];
|
|
793
|
+
$[10] = liveView?.targets;
|
|
794
|
+
$[11] = t2;
|
|
795
|
+
} else t2 = $[11];
|
|
796
|
+
const targets = t2;
|
|
797
|
+
let t3;
|
|
798
|
+
if ($[12] !== requestedTargetId || $[13] !== targets) {
|
|
799
|
+
t3 = pickTarget(targets, requestedTargetId);
|
|
800
|
+
$[12] = requestedTargetId;
|
|
801
|
+
$[13] = targets;
|
|
802
|
+
$[14] = t3;
|
|
803
|
+
} else t3 = $[14];
|
|
804
|
+
const target = t3;
|
|
805
|
+
let t4;
|
|
806
|
+
if ($[15] !== empty || $[16] !== fallback || $[17] !== liveView || $[18] !== loading || $[19] !== target) {
|
|
807
|
+
t4 = target && liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
|
|
808
|
+
fill: true,
|
|
809
|
+
source: {
|
|
810
|
+
url: target.url,
|
|
811
|
+
targetId: target.targetId,
|
|
812
|
+
expiresInMs: liveView.expiresInMs
|
|
813
|
+
},
|
|
814
|
+
pageTitle: target.title ?? target.pageUrl,
|
|
815
|
+
fallback
|
|
816
|
+
}) : loading ? /* @__PURE__ */ jsxs(BrowserRunPanelState, {
|
|
817
|
+
role: "status",
|
|
818
|
+
children: [/* @__PURE__ */ jsx(SpinnerIcon, {}), "Loading browser session"]
|
|
819
|
+
}) : /* @__PURE__ */ jsx(BrowserRunPanelState, { children: empty });
|
|
820
|
+
$[15] = empty;
|
|
821
|
+
$[16] = fallback;
|
|
822
|
+
$[17] = liveView;
|
|
823
|
+
$[18] = loading;
|
|
824
|
+
$[19] = target;
|
|
825
|
+
$[20] = t4;
|
|
826
|
+
} else t4 = $[20];
|
|
827
|
+
const body = t4;
|
|
828
|
+
let t5;
|
|
829
|
+
if ($[21] !== loading || $[22] !== onRefresh) {
|
|
830
|
+
t5 = onRefresh ? /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
128
831
|
action: "reload",
|
|
129
832
|
label: "Refresh browser view",
|
|
130
833
|
disabled: loading,
|
|
131
834
|
onClick: () => void onRefresh()
|
|
132
|
-
}) : null
|
|
835
|
+
}) : null;
|
|
836
|
+
$[21] = loading;
|
|
837
|
+
$[22] = onRefresh;
|
|
838
|
+
$[23] = t5;
|
|
839
|
+
} else t5 = $[23];
|
|
840
|
+
let t6;
|
|
841
|
+
if ($[24] !== onCloseSession) {
|
|
842
|
+
t6 = onCloseSession ? /* @__PURE__ */ jsx(WebPreviewNavigationButton, {
|
|
133
843
|
label: "Close browser session",
|
|
134
844
|
onClick: () => void onCloseSession(),
|
|
135
845
|
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
136
|
-
}) : null
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
846
|
+
}) : null;
|
|
847
|
+
$[24] = onCloseSession;
|
|
848
|
+
$[25] = t6;
|
|
849
|
+
} else t6 = $[25];
|
|
850
|
+
let t7;
|
|
851
|
+
if ($[26] !== t5 || $[27] !== t6) {
|
|
852
|
+
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t6] });
|
|
853
|
+
$[26] = t5;
|
|
854
|
+
$[27] = t6;
|
|
855
|
+
$[28] = t7;
|
|
856
|
+
} else t7 = $[28];
|
|
857
|
+
const t8 = target?.targetId ?? null;
|
|
858
|
+
let t9;
|
|
859
|
+
if ($[29] !== targets) {
|
|
860
|
+
t9 = targets.map(_temp);
|
|
861
|
+
$[29] = targets;
|
|
862
|
+
$[30] = t9;
|
|
863
|
+
} else t9 = $[30];
|
|
864
|
+
const t10 = target?.pageUrl ?? "";
|
|
865
|
+
let t11;
|
|
866
|
+
if ($[31] !== body || $[32] !== error || $[33] !== label || $[34] !== loading || $[35] !== props || $[36] !== t10 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
|
|
867
|
+
t11 = /* @__PURE__ */ jsx(BrowserRunPanelFrame, {
|
|
868
|
+
...props,
|
|
869
|
+
body,
|
|
870
|
+
bodyBusy: loading,
|
|
871
|
+
error,
|
|
872
|
+
label,
|
|
873
|
+
navigationEnd: t7,
|
|
874
|
+
onSelectTab: setRequestedTargetId,
|
|
875
|
+
selectedTabId: t8,
|
|
876
|
+
tabs: t9,
|
|
877
|
+
url: t10,
|
|
878
|
+
urlPlaceholder: "Waiting for browser session",
|
|
879
|
+
urlReadOnly: true
|
|
880
|
+
});
|
|
881
|
+
$[31] = body;
|
|
882
|
+
$[32] = error;
|
|
883
|
+
$[33] = label;
|
|
884
|
+
$[34] = loading;
|
|
885
|
+
$[35] = props;
|
|
886
|
+
$[36] = t10;
|
|
887
|
+
$[37] = t7;
|
|
888
|
+
$[38] = t8;
|
|
889
|
+
$[39] = t9;
|
|
890
|
+
$[40] = t11;
|
|
891
|
+
} else t11 = $[40];
|
|
892
|
+
return t11;
|
|
148
893
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
894
|
+
function _temp(candidate) {
|
|
895
|
+
return {
|
|
896
|
+
id: candidate.targetId,
|
|
897
|
+
...candidate.title === void 0 ? {} : { title: candidate.title },
|
|
898
|
+
...candidate.pageUrl === void 0 ? {} : { url: candidate.pageUrl }
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
function StreamedBrowserRunPanel(t0) {
|
|
902
|
+
const $ = c(33);
|
|
903
|
+
let children;
|
|
904
|
+
let navigation;
|
|
905
|
+
let navigationEnd;
|
|
906
|
+
let onCloseTab;
|
|
907
|
+
let onNewTab;
|
|
908
|
+
let onOpenUrl;
|
|
909
|
+
let onSelectTab;
|
|
910
|
+
let props;
|
|
911
|
+
let t1;
|
|
912
|
+
let t2;
|
|
913
|
+
let t3;
|
|
914
|
+
let urlDisabled;
|
|
915
|
+
let urlLabel;
|
|
916
|
+
let urlPlaceholder;
|
|
917
|
+
if ($[0] !== t0) {
|
|
918
|
+
({children, tabs: t1, selectedTabId: t2, onSelectTab, onCloseTab, onNewTab, url: t3, onOpenUrl, urlPlaceholder, urlDisabled, urlLabel, navigation, navigationEnd, ...props} = t0);
|
|
919
|
+
$[0] = t0;
|
|
920
|
+
$[1] = children;
|
|
921
|
+
$[2] = navigation;
|
|
922
|
+
$[3] = navigationEnd;
|
|
923
|
+
$[4] = onCloseTab;
|
|
924
|
+
$[5] = onNewTab;
|
|
925
|
+
$[6] = onOpenUrl;
|
|
926
|
+
$[7] = onSelectTab;
|
|
927
|
+
$[8] = props;
|
|
928
|
+
$[9] = t1;
|
|
929
|
+
$[10] = t2;
|
|
930
|
+
$[11] = t3;
|
|
931
|
+
$[12] = urlDisabled;
|
|
932
|
+
$[13] = urlLabel;
|
|
933
|
+
$[14] = urlPlaceholder;
|
|
934
|
+
} else {
|
|
935
|
+
children = $[1];
|
|
936
|
+
navigation = $[2];
|
|
937
|
+
navigationEnd = $[3];
|
|
938
|
+
onCloseTab = $[4];
|
|
939
|
+
onNewTab = $[5];
|
|
940
|
+
onOpenUrl = $[6];
|
|
941
|
+
onSelectTab = $[7];
|
|
942
|
+
props = $[8];
|
|
943
|
+
t1 = $[9];
|
|
944
|
+
t2 = $[10];
|
|
945
|
+
t3 = $[11];
|
|
946
|
+
urlDisabled = $[12];
|
|
947
|
+
urlLabel = $[13];
|
|
948
|
+
urlPlaceholder = $[14];
|
|
949
|
+
}
|
|
950
|
+
let t4;
|
|
951
|
+
if ($[15] !== t1) {
|
|
952
|
+
t4 = t1 === void 0 ? [] : t1;
|
|
953
|
+
$[15] = t1;
|
|
954
|
+
$[16] = t4;
|
|
955
|
+
} else t4 = $[16];
|
|
956
|
+
const tabs = t4;
|
|
957
|
+
const selectedTabId = t2 === void 0 ? null : t2;
|
|
958
|
+
const url = t3 === void 0 ? "" : t3;
|
|
959
|
+
const t5 = onOpenUrl === void 0 || void 0;
|
|
960
|
+
let t6;
|
|
961
|
+
if ($[17] !== children || $[18] !== navigation || $[19] !== navigationEnd || $[20] !== onCloseTab || $[21] !== onNewTab || $[22] !== onOpenUrl || $[23] !== onSelectTab || $[24] !== props || $[25] !== selectedTabId || $[26] !== t5 || $[27] !== tabs || $[28] !== url || $[29] !== urlDisabled || $[30] !== urlLabel || $[31] !== urlPlaceholder) {
|
|
962
|
+
t6 = /* @__PURE__ */ jsx(BrowserRunPanelFrame, {
|
|
963
|
+
...props,
|
|
964
|
+
body: children,
|
|
965
|
+
navigation,
|
|
966
|
+
navigationEnd,
|
|
967
|
+
onOpenUrl,
|
|
968
|
+
onSelectTab,
|
|
969
|
+
onCloseTab,
|
|
970
|
+
onNewTab,
|
|
971
|
+
selectedTabId,
|
|
972
|
+
tabs,
|
|
973
|
+
url,
|
|
974
|
+
urlDisabled,
|
|
975
|
+
urlLabel,
|
|
976
|
+
urlPlaceholder,
|
|
977
|
+
urlReadOnly: t5
|
|
978
|
+
});
|
|
979
|
+
$[17] = children;
|
|
980
|
+
$[18] = navigation;
|
|
981
|
+
$[19] = navigationEnd;
|
|
982
|
+
$[20] = onCloseTab;
|
|
983
|
+
$[21] = onNewTab;
|
|
984
|
+
$[22] = onOpenUrl;
|
|
985
|
+
$[23] = onSelectTab;
|
|
986
|
+
$[24] = props;
|
|
987
|
+
$[25] = selectedTabId;
|
|
988
|
+
$[26] = t5;
|
|
989
|
+
$[27] = tabs;
|
|
990
|
+
$[28] = url;
|
|
991
|
+
$[29] = urlDisabled;
|
|
992
|
+
$[30] = urlLabel;
|
|
993
|
+
$[31] = urlPlaceholder;
|
|
994
|
+
$[32] = t6;
|
|
995
|
+
} else t6 = $[32];
|
|
996
|
+
return t6;
|
|
164
997
|
}
|
|
165
998
|
/**
|
|
166
999
|
* Browser panel chrome — drawn tab strip, address bar, edge-to-edge body — for
|
|
@@ -175,8 +1008,25 @@ function StreamedBrowserRunPanel({ children, tabs = [], selectedTabId = null, on
|
|
|
175
1008
|
* piece of chrome around it has to be synthesized from host state.
|
|
176
1009
|
*/
|
|
177
1010
|
function BrowserRunPanel(props) {
|
|
178
|
-
|
|
179
|
-
|
|
1011
|
+
const $ = c(4);
|
|
1012
|
+
if (props.children !== void 0) {
|
|
1013
|
+
const t0 = props;
|
|
1014
|
+
let t1;
|
|
1015
|
+
if ($[0] !== t0) {
|
|
1016
|
+
t1 = /* @__PURE__ */ jsx(StreamedBrowserRunPanel, { ...t0 });
|
|
1017
|
+
$[0] = t0;
|
|
1018
|
+
$[1] = t1;
|
|
1019
|
+
} else t1 = $[1];
|
|
1020
|
+
return t1;
|
|
1021
|
+
}
|
|
1022
|
+
const t0 = props;
|
|
1023
|
+
let t1;
|
|
1024
|
+
if ($[2] !== t0) {
|
|
1025
|
+
t1 = /* @__PURE__ */ jsx(HostedBrowserRunPanel, { ...t0 });
|
|
1026
|
+
$[2] = t0;
|
|
1027
|
+
$[3] = t1;
|
|
1028
|
+
} else t1 = $[3];
|
|
1029
|
+
return t1;
|
|
180
1030
|
}
|
|
181
1031
|
//#endregion
|
|
182
|
-
export { BrowserRunPanel };
|
|
1032
|
+
export { BrowserProfileMenu, BrowserRunPanel, BrowserTabStrip };
|